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