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, maxRetries: options.maxRetries ?? 2,
configuration, configuration,
callbacks: [new N8nLlmTracing(this)], callbacks: [new N8nLlmTracing(this)],
modelKwargs: options.responseFormat modelKwargs: {
? { stream_options: undefined,
response_format: { type: options.responseFormat }, ...(options.responseFormat
} ? {
: undefined, response_format: { type: options.responseFormat },
}
: undefined),
},
onFailedAttempt: makeN8nLlmFailedAttemptHandler(this, openAiFailedAttemptHandler), onFailedAttempt: makeN8nLlmFailedAttemptHandler(this, openAiFailedAttemptHandler),
}); });