Merge branch 'nate/fix-warnings' of https://github.com/continuedev/continue into nate/fix-warnings
This commit is contained in:
commit
13a019d859
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ export function convertOpenAIToolToGeminiFunction(
|
|||
tool: ChatCompletionTool,
|
||||
): GeminiToolFunctionDeclaration {
|
||||
// Type guard for function tools
|
||||
if (tool.type !== "function" || !("function" in tool)) {
|
||||
if (tool.type !== "function" || !tool.function) {
|
||||
throw new Error(`Unsupported tool type: ${tool.type}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue