Skip to content

Commit d2358d2

Browse files
committed
fix: fix name and id for openai tool calls
1 parent 29c0241 commit d2358d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/src/modules/puterai/OpenAICompletionService.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ class OpenAICompletionService extends BaseService {
351351
if ( ! tool_call_blocks[tool_call.index] ) {
352352
toolblock = message.contentBlock({
353353
type: 'tool_use',
354-
id: tool_call.function.name,
354+
id: tool_call.id,
355+
name: tool_call.function.name,
355356
});
356357
tool_call_blocks[tool_call.index] = toolblock;
357358
} else {

0 commit comments

Comments
 (0)