Skip to content

feat: support gemini through ai sdk#10671

Merged
RomneyDa merged 6 commits intocontinuedev:mainfrom
uinstinct:ai-sdk-gemini
Mar 25, 2026
Merged

feat: support gemini through ai sdk#10671
RomneyDa merged 6 commits intocontinuedev:mainfrom
uinstinct:ai-sdk-gemini

Conversation

@uinstinct
Copy link
Copy Markdown
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 AI SDK and enables thought signature propagation through tool-call messages and streaming. Tool-call stream parts now emit chat chunks so extra_content flows end-to-end.

  • New Features

    • Google Gemini via @ai-sdk/google; added google to the provider map.
    • Thought signatures on tool calls: messages set providerOptions.google.thoughtSignature from extra_content.google.thought_signature; streaming reads providerMetadata.google|vertex.thoughtSignature and surfaces as extra_content.google.thought_signature.
  • Refactors

    • Capture and forward extra_content for tool calls across converters, history, CLI types, and stream deltas; tool-call events now emit chat chunks.
    • Update OpenAI↔Vercel converters to SDK v6 fields; add @ai-sdk/google dependency; adjust tests to expect tool-call chunk emission.

Written for commit a33e617. 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
Copy Markdown
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.

Comment thread packages/openai-adapters/src/openaiToVercelMessages.ts
@uinstinct uinstinct marked this pull request as ready for review February 26, 2026 06:59
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Feb 26, 2026
Copy link
Copy Markdown
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.

No issues found across 9 files

sestinj
sestinj previously approved these changes Mar 1, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Issues and PRs Mar 1, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Mar 1, 2026
RomneyDa
RomneyDa previously approved these changes Mar 24, 2026
Resolve conflict in vercelStreamConverter.ts: keep both streaming
tool-input-start/delta from main and Gemini tool-call with
thoughtSignature support from this branch.
RomneyDa
RomneyDa previously approved these changes Mar 24, 2026
The tool-call case now returns a chunk (for Gemini thoughtSignature
support) instead of null, so tests need to expect the new behavior.
Copy link
Copy Markdown
Contributor

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

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

Nice fix @uinstinct!

@RomneyDa RomneyDa merged commit 6e0045e into continuedev:main Mar 25, 2026
53 of 61 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Issues and PRs Mar 25, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 25, 2026
@uinstinct uinstinct deleted the ai-sdk-gemini branch March 25, 2026 03:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants