Elffuss BraidHub

kikocis/continue public

Merge branch 'nate/fix-warnings' of https://github.com/continuedev/continue into nate/fix-warnings
Changesetb6e6735783e069d977b7ce18189d3ada2fe457267d2c909ab22b211a91f2f98a
AuthorNate <sestinj@gmail.com> · 2025-08-21 08:08 -07:00
CommitterNate <sestinj@gmail.com> · 2025-08-21 08:08 -07:00
Parents58c1188371ed, cde774a0500c

Browse the files at this changeset

1 file changed

modified packages/openai-adapters/src/util/gemini-types.ts +1 −1
@@ -146,7 +146,7 @@
146146 tool: ChatCompletionTool,
147147 ): GeminiToolFunctionDeclaration {
148148 // Type guard for function tools
149- if (tool.type !== "function" || !("function" in tool)) {
149+ if (tool.type !== "function" || !tool.function) {
150150 throw new Error(`Unsupported tool type: ${tool.type}`);
151151 }
152152