Fix type error

This commit is contained in:
Saoud Rizwan
2024-09-14 16:51:44 -04:00
parent 4ee88c5de7
commit a888520b36

View File

@@ -259,8 +259,7 @@ export class OpenRouterHandler implements ApiHandler {
role: "assistant", role: "assistant",
content: textContent, content: textContent,
tool_calls: toolCalls.length > 0 ? toolCalls : undefined, tool_calls: toolCalls.length > 0 ? toolCalls : undefined,
// @ts-ignore-next-line refusal: null,
refusal: undefined,
}, },
finish_reason: toolCalls.length > 0 ? "tool_calls" : "stop", finish_reason: toolCalls.length > 0 ? "tool_calls" : "stop",
index: 0, index: 0,