From 55a4b9d4364577e753d8d6da8ea8f0c60e6be950 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Sun, 28 Dec 2025 01:21:33 +0530 Subject: [PATCH] feat(openai-llm): use function call index instead of type --- src/lib/models/providers/openai/openaiLLM.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/models/providers/openai/openaiLLM.ts b/src/lib/models/providers/openai/openaiLLM.ts index a40714e..dfad274 100644 --- a/src/lib/models/providers/openai/openaiLLM.ts +++ b/src/lib/models/providers/openai/openaiLLM.ts @@ -167,7 +167,7 @@ class OpenAILLM extends BaseLLM { contentChunk: chunk.choices[0].delta.content || '', toolCallChunk: toolCalls?.map((tc) => { - if (tc.type === 'function') { + if (!recievedToolCalls[tc.index]) { const call = { name: tc.function?.name!, id: tc.id!,