Skip to content

Commit b818715

Browse files
fix: propagate removeBodyFields in treatAsLocal path
The treatAsLocal code path was dropping removeBodyFields from the model-inference config. For DeepSeek/Kimi models, inference returns removeBodyFields: ['store'] which was silently lost for local proxies. Currently mitigated by the isLocal store-stripping check, but this ensures future removeBodyFields entries are also preserved.
1 parent 26416dd commit b818715

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/integrations/runtimeMetadata.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ export function resolveOpenAIShimRuntimeContext(options?: {
263263
...(remoteModelInferredConfig?.thinkingRequestFormat !== undefined
264264
? { thinkingRequestFormat: remoteModelInferredConfig.thinkingRequestFormat }
265265
: {}),
266+
...(remoteModelInferredConfig?.removeBodyFields !== undefined
267+
? { removeBodyFields: remoteModelInferredConfig.removeBodyFields }
268+
: {}),
266269
}
267270
: remoteModelInferredConfig
268271

0 commit comments

Comments
 (0)