fix: fix name and id for openai tool calls

This commit is contained in:
KernelDeimos
2025-02-04 14:36:30 -05:00
parent 29c0241119
commit d2358d234b

View File

@@ -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 {