mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(xAI Grok Chat Model Node): Remove stream_options parameter (#14496)
This commit is contained in:
@@ -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,
|
||||||
|
...(options.responseFormat
|
||||||
? {
|
? {
|
||||||
response_format: { type: options.responseFormat },
|
response_format: { type: options.responseFormat },
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined),
|
||||||
|
},
|
||||||
onFailedAttempt: makeN8nLlmFailedAttemptHandler(this, openAiFailedAttemptHandler),
|
onFailedAttempt: makeN8nLlmFailedAttemptHandler(this, openAiFailedAttemptHandler),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user