Added support for logprobs in Vertex AI Gemini models#9493
Merged
krrishdholakia merged 3 commits intoBerriAI:litellm_contributor_prs_03_24_2025_p2from Mar 25, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
Outdated
Show resolved
Hide resolved
…ni.py Co-authored-by: Tom Matthews <tomukmatthews@gmail.com>
Member
|
Hey @ADIthaker can you please share a screenshot of your PR passing
|
Member
There was a problem hiding this comment.
this folder/file should map the file it's testing on the repo
it should be tests/litellm/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py
61759b0
into
BerriAI:litellm_contributor_prs_03_24_2025_p2
2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title
Added support for logprobs in Vertex AI Gemini models
Relevant issues
Fixes #9091
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unit)[https://docs.litellm.ai/docs/extras/contributing_code]Type
🆕 New Feature
Changes
litellm/utils.py- Containsget_optional_paramsthat callsProviderConfigto get the supported params by calling function inlitellm/litellm_core_utils/get_supported_openai_params.py, appendtop_logprobsto it.litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.pyto understand atVertexGeminiConfig, and editsupported_openai_params,map_openai_params