Skip to content

Comments

feat: support gemini through ai sdk#10671

Draft
uinstinct wants to merge 10 commits intocontinuedev:mainfrom
uinstinct:ai-sdk-gemini
Draft

feat: support gemini through ai sdk#10671
uinstinct wants to merge 10 commits intocontinuedev:mainfrom
uinstinct:ai-sdk-gemini

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Feb 20, 2026

Description

Add support for gemini via ai sdk.

requires #10642 to be merged first

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Continue Tasks: ❌ 7 failed — View all


Summary by cubic

Adds Gemini support via the SDK and updates adapters, tooling, and streaming to SDK v6 formats. This removes feature flags and standardizes providers (OpenAI, Anthropic, Google) behind the SDK.

  • New Features

    • Google Gemini models supported through the SDK.
    • Preserves extra_content in assistant tool calls.
    • Updated stream conversion to v6 (text/reasoning start/delta/end; thought signature support).
  • Refactors

    • Switches provider map to createAnthropic/createGoogleGenerativeAI/createOpenAI.
    • Aligns tool/message formats: parameters → inputSchema, args → input.
    • Uses maxOutputTokens for token limits; removes USE_VERCEL_AI_SDK flags.
    • Upgrades dependencies to SDK v6; updates tests to use the SDK provider; removes outdated docs.

Written for commit 9de0c89. Summary will update on new commits.

@uinstinct uinstinct requested a review from a team as a code owner February 20, 2026 07:48
@uinstinct uinstinct requested review from sestinj and removed request for a team February 20, 2026 07:48
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Feb 20, 2026
@uinstinct uinstinct marked this pull request as draft February 20, 2026 07:48
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 17 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/openai-adapters/src/openaiToVercelMessages.ts">

<violation number="1" location="packages/openai-adapters/src/openaiToVercelMessages.ts:90">
P2: Tool-call payload uses `input` instead of documented `args` for CoreMessage ToolCallPart, which can break schema validation or consumers expecting `args`.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

toolCallId: tc.id,
toolName: tc.function.name,
args,
input,
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Tool-call payload uses input instead of documented args for CoreMessage ToolCallPart, which can break schema validation or consumers expecting args.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/openai-adapters/src/openaiToVercelMessages.ts, line 90:

<comment>Tool-call payload uses `input` instead of documented `args` for CoreMessage ToolCallPart, which can break schema validation or consumers expecting `args`.</comment>

<file context>
@@ -73,17 +73,28 @@ export function convertOpenAIMessagesToVercel(
                 toolCallId: tc.id,
                 toolName: tc.function.name,
-                args,
+                input,
+                ...(thoughtSignature && {
+                  providerOptions: {
</file context>
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant