mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-08 22:20:38 -06:00
fix: fix name and id for openai tool calls
This commit is contained in:
@@ -351,7 +351,8 @@ class OpenAICompletionService extends BaseService {
|
||||
if ( ! tool_call_blocks[tool_call.index] ) {
|
||||
toolblock = message.contentBlock({
|
||||
type: 'tool_use',
|
||||
id: tool_call.function.name,
|
||||
id: tool_call.id,
|
||||
name: tool_call.function.name,
|
||||
});
|
||||
tool_call_blocks[tool_call.index] = toolblock;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user