mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fix type error
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user