Skip to content

Commit a872198

Browse files
committed
fix: error reporting in tool calling
1 parent d3a4479 commit a872198

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/server/textGeneration/tools.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,7 @@ export async function* runTools(
234234

235235
calls.push(...newCalls);
236236
} catch (e) {
237-
logger.warn(
238-
{ rawCall: output.generated_text, error: extractJson },
239-
"Error while parsing tool calls"
240-
);
237+
logger.warn({ rawCall: output.generated_text, error: e }, "Error while parsing tool calls");
241238
// error parsing the calls
242239
yield {
243240
type: MessageUpdateType.Status,

0 commit comments

Comments
 (0)