From 57c94e1c0221cd766e3a6e080b8c5ce45f770cee Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 21 Aug 2025 10:16:17 -0700 Subject: [PATCH] chore: format --- core/llm/llm.test.ts | 4 +++- core/llm/openaiTypeConverters.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/llm/llm.test.ts b/core/llm/llm.test.ts index fc1ede0bc..5535bae30 100644 --- a/core/llm/llm.test.ts +++ b/core/llm/llm.test.ts @@ -186,7 +186,9 @@ function testLLM( // For Mistral, if no tool calls were received, skip the test // as it may not support forced tool use if (args === "" && llm.constructor.name === "Mistral") { - console.log("Mistral did not return tool calls, skipping assertion"); + console.log( + "Mistral did not return tool calls, skipping assertion", + ); return; } diff --git a/core/llm/openaiTypeConverters.ts b/core/llm/openaiTypeConverters.ts index 32568c2e9..75ea7ee91 100644 --- a/core/llm/openaiTypeConverters.ts +++ b/core/llm/openaiTypeConverters.ts @@ -200,7 +200,7 @@ export function fromChatCompletionChunk( arguments: (tool_call as any).function?.arguments, }, })); - + if (toolCalls.length > 0) { return { role: "assistant",