Changesets · Branches · Tags · Compare
| Changeset | cde774a0500cd7f25fa439677a049bf283acf678c8d4c98161bed836d85decb1 |
|---|---|
| Author | Nate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-08-21 07:57 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-08-21 07:57 -07:00 |
| Parents | 0483abaffc0c |
1 file changed
modified packages/openai-adapters/src/util/gemini-types.ts +1 −1
| @@ -146,7 +146,7 @@ | ||
| 146 | 146 | tool: ChatCompletionTool, |
| 147 | 147 | ): GeminiToolFunctionDeclaration { |
| 148 | 148 | // Type guard for function tools |
| 149 | - if (tool.type !== "function" || !("function" in tool)) { | |
| 149 | + if (tool.type !== "function" || !tool.function) { | |
| 150 | 150 | throw new Error(`Unsupported tool type: ${tool.type}`); |
| 151 | 151 | } |
| 152 | 152 |