changes
This commit is contained in:
@@ -254,9 +254,11 @@ export async function POST(request: NextRequest) {
|
|||||||
controller.enqueue(encoder.encode(toolMarker));
|
controller.enqueue(encoder.encode(toolMarker));
|
||||||
|
|
||||||
// Add tool result to messages for next iteration
|
// Add tool result to messages for next iteration
|
||||||
|
// Include tool_name so model knows which tool produced this result
|
||||||
workingMessages.push({
|
workingMessages.push({
|
||||||
role: 'tool',
|
role: 'tool',
|
||||||
content: toolResult,
|
content: toolResult,
|
||||||
|
tool_name: toolCall.name,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user