Skip to content

Add thought signature support to v1/messages api - #16812

Merged
6 commits merged into
mainfrom
litellm_gemini_3_claude_support
Nov 20, 2025
Merged

6 commits merged into
mainfrom
litellm_gemini_3_claude_support

Conversation

@Sameerlite

@Sameerlite Sameerlite commented Nov 19, 2025 •

Copy link
Copy Markdown
Contributor

Title

Add thought signature support to v1/messages api and dummy signature support

Relevant issues

Fixes #16780
Fixes #16830

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature
🐛 Bug Fix

Changes

  • Added Vertex AI gemini-3-pro-preview support for cost tracking
  • Added thought signature support in messages api
  • Added dummy thought signature support incase context is switched from models other than gemini 3 to gemini 3 model

Testing

With no signature(uses dummy signature)
image

With messages api(signature in the output)
image

Claude Code:
image

@vercel

vercel Bot commented Nov 19, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Nov 20, 2025 3:17am

Copilot AI added a commit to towry/litellm that referenced this pull request Nov 19, 2025
Co-authored-by: towry <8279858+towry@users.noreply.github.com>

@ishaan-jaff ishaan-jaff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@ishaan-jaff ishaan-jaff left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This pull request was closed.

This branch was successfully deployed

1 active deployment
Preview — 01a55f4b Deployed Nov 20, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Thought Signature not being returned [Feature]: Gemini 3

2 participants