Fix type error
This commit is contained in:
1 parent
4ee88c5de7
commit
a888520b36
1 file changed
+1
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user