Changesets · Branches · Tags · Compare
| Changeset | b6e6735783e069d977b7ce18189d3ada2fe457267d2c909ab22b211a91f2f98a |
|---|---|
| Author | Nate <sestinj@gmail.com> · 2025-08-21 08:08 -07:00 |
| Committer | Nate <sestinj@gmail.com> · 2025-08-21 08:08 -07:00 |
| Parents | 58c1188371ed, cde774a0500c |
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 |