Elffuss BraidHub

kikocis/continue public

Update packages/openai-adapters/src/util/gemini-types.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Changesetcde774a0500cd7f25fa439677a049bf283acf678c8d4c98161bed836d85decb1
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-08-21 07:57 -07:00
CommitterGitHub <noreply@github.com> · 2025-08-21 07:57 -07:00
Parents0483abaffc0c

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