fix(xAI Grok Chat Model Node): Remove stream_options parameter (#14496)

This commit is contained in:
Eugene
2025-04-10 13:25:17 +02:00
committed by GitHub
parent 3db47504a2
commit 8c417d7b1b

View File

@@ -238,11 +238,14 @@ export class LmChatXAiGrok implements INodeType {
maxRetries: options.maxRetries ?? 2,
configuration,
callbacks: [new N8nLlmTracing(this)],
modelKwargs: options.responseFormat
? {
response_format: { type: options.responseFormat },
}
: undefined,
modelKwargs: {
stream_options: undefined,
...(options.responseFormat
? {
response_format: { type: options.responseFormat },
}
: undefined),
},
onFailedAttempt: makeN8nLlmFailedAttemptHandler(this, openAiFailedAttemptHandler),
});