Merge branch 'nate/fix-warnings' of https://github.com/continuedev/continue into nate/fix-warnings

This commit is contained in:
Nate 2025-08-21 08:08:13 -07:00
commit 13a019d859

View file

@ -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}`);
}