From a888520b36ee7326a9031f66f99d68db32b8a4e8 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sat, 14 Sep 2024 16:51:44 -0400 Subject: [PATCH] Fix type error --- src/api/openrouter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/openrouter.ts b/src/api/openrouter.ts index 55c1bd9..e3df5f1 100644 --- a/src/api/openrouter.ts +++ b/src/api/openrouter.ts @@ -259,8 +259,7 @@ export class OpenRouterHandler implements ApiHandler { role: "assistant", content: textContent, tool_calls: toolCalls.length > 0 ? toolCalls : undefined, - // @ts-ignore-next-line - refusal: undefined, + refusal: null, }, finish_reason: toolCalls.length > 0 ? "tool_calls" : "stop", index: 0,