mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
fix: Enable tool call streaming in chat API route
This commit is contained in:
@@ -59,7 +59,7 @@ ${lastMessage.content}
|
|||||||
// model: openrouter("google/gemini-2.0-flash-exp:free"),
|
// model: openrouter("google/gemini-2.0-flash-exp:free"),
|
||||||
model: bedrock('anthropic.claude-3-5-sonnet-20241022-v2:0'),
|
model: bedrock('anthropic.claude-3-5-sonnet-20241022-v2:0'),
|
||||||
// model: openai("gpt-4o"),
|
// model: openai("gpt-4o"),
|
||||||
// toolCallStreaming: true,
|
toolCallStreaming: true,
|
||||||
messages: enhancedMessages,
|
messages: enhancedMessages,
|
||||||
tools: {
|
tools: {
|
||||||
// Client-side tool that will be executed on the client
|
// Client-side tool that will be executed on the client
|
||||||
|
|||||||
Reference in New Issue
Block a user