Browse Source

Fix type error

Saoud Rizwan 1 year ago
parent
commit
a888520b36
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/api/openrouter.ts

+ 1 - 2
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,