From 902bc0038c782429628c4d2c53ec6a1d8ca9da81 Mon Sep 17 00:00:00 2001 From: xavidop Date: Wed, 23 Oct 2024 00:19:04 +0200 Subject: [PATCH] fix: meta and Phi working --- src/github_llms.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github_llms.ts b/src/github_llms.ts index a00b760..868b497 100644 --- a/src/github_llms.ts +++ b/src/github_llms.ts @@ -611,7 +611,7 @@ function fromGithubChoice( : "other", message: { role: "model", - content: toolRequestParts + content: (toolRequestParts?.length ?? 0) > 0 ? (toolRequestParts as ToolRequestPart[]) : [ jsonMode