Repository navigation
LiteLLM Minor Fixes & Improvements (2024/12/18) p1 - #7295
Merged
17 commits merged intoDec 19, 2024
Merged
17 commits merged into
17 commits merged into
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…e ai studio - pricing + commercial rate limits
…audio output = true
…nterprise feature
… 'stop' params for o1 and 'stream_options' param for o1-mini
…sage' to supporting openai models needed as o1-preview, and o1-mini models don't support 'system message
…1-preview o1 currently doesn't support streaming, but the other model versions do Fixes #7292
…ported params if model map says so Fixes #7292
| ) | ||
| except Exception: | ||
| verbose_logger.debug( | ||
| f"Unable to infer model provider for model={model}, defaulting to openai for o1 supported param check" |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI almost 2 years ago
To fix the problem, we should avoid logging sensitive information directly. Instead, we can log a generic message that does not include the sensitive data. This way, we maintain the ability to log useful information for debugging purposes without exposing sensitive data.
- Replace the log message that includes the
modelvariable with a more generic message. - Ensure that no sensitive information is included in the log message.
Suggested changeset
1
litellm/llms/openai/chat/o1_transformation.py
| @@ -68,3 +68,3 @@ | ||
| verbose_logger.debug( | ||
| f"Unable to infer model provider for model={model}, defaulting to openai for o1 supported param check" | ||
| "Unable to infer model provider, defaulting to openai for o1 supported param check" | ||
| ) |
Copilot is powered by AI and may make mistakes. Always verify output.
…upported params + handle stream options being passed in for azure o1
Allows o1 calls to be faked for just the "o1" model, allows native streaming for o1-mini, o1-preview Fixes #7292
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
ghost
deleted the
litellm_dev_12_18_2024_p1
branch
March 26, 2026 21:52
kerry-berri
added a commit
that referenced
this pull request
Sep 23, 2026
…eting bugs (#42622) * test(integration): saving echoed model_info never persists cost map pricing as a deployment override (Pylon #6870) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): budget_duration change on /budget/update recomputes budget_reset_at (Pylon #6913) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): count_tokens on a budgeted key reserves no budget and a later completion still succeeds (Pylon #6966) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): /cost/estimate reports configured prices for a deployment absent from the cost map (Pylon #7014) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): cache the team member default budget in Redis as JSON (Pylon #7180) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): aggregated team daily activity reports whole-range team spend in one page (Pylon #7224) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): failed daily user rollup commits are retried so spend report and daily activity agree (Pylon #7268) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): CLI session token without org_id is charged to and capped by the team organization budget (Pylon #7291) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): gemini passthrough success releases its budget reservation from the spend counter (Pylon #7295) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): batch retrieval spend row sums reasoning tokens and counts output and error file failures (Pylon #7341) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): uncostable batches retire from the cost poll page so newer batches are costed (Pylon #7342) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): charge a team member added without any budget on its membership row (Pylon #7363) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): failed dispatched requests keep estimated input tokens in spend logs (Pylon #7519) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): bedrock passthrough converse guardrail ignores tool definitions (Pylon #7524) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): explicit null budget_duration on /team/new is not replaced by default_team_params (Pylon #7536) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): PATCH /organization/update with a null limit clears it (Pylon #7577) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): ultrafast service_tier bills ultrafast rates without leaking pricing fields upstream (Pylon #7587) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): keep the selected model in the response and spend log for an Azure Model Router alias (Pylon #7636) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): disconnected Bedrock /v1/messages stream still bills terminal usage (Pylon #7685) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): databricks cached prompt tokens bill at cache rates (Pylon #7738) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): completed batch spend row records reasoning tokens and error file failures (Pylon #7928) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): bill OCR annotation pages at annotation_cost_per_page (Pylon #7958) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): in-flight count tokens request reserves no key budget so a completion still reaches the provider (Pylon #7307) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): fail-closed key rejects known estimate over remaining budget before provider (Pylon #7691) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): streamed /v1/responses success callbacks keep provider response headers (Pylon #7775) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * Revert "test(integration): fail-closed key rejects known estimate over remaining budget before provider (Pylon #7691)" This reverts commit 910348b. * test(integration): reconcile contracts manifest for bundled regression tests Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): isolate proxy config writes in bundled regression tests Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): address review feedback on budget reset bounds and callback batch accumulation Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): avoid rebinding the cache identity accumulator Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): assert forwarded messages per cache identity call Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): make budget reset and team default tests deterministic Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: kerry <kerry@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This pull request was closed.
This branch was successfully deployed
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.
fix(health.md): add rerank model health check information
build(model_prices_and_context_window.json): add gemini 2.0 for google ai studio - pricing + commercial rate limits
build(model_prices_and_context_window.json): add gemini-2.0 supports audio output = true
docs(team_model_add.md): clarify allowing teams to add models is an enterprise feature
fix(o1_transformation.py): add support for 'n', 'response_format' and 'stop' params for o1 and 'stream_options' param for o1-mini
build(model_prices_and_context_window.json): add 'supports_system_message' to supporting openai models
needed as o1-preview, and o1-mini models don't support 'system message
fix(o1_transformation.py): translate system message based on if o1 model supports it
fix(o1_transformation.py): return 'stream' param support if o1-mini/o1-preview
o1 currently doesn't support streaming, but the other model versions do
Fixes #7292
Fixes #7292
fix: fix linting errors
fix: update '_transform_messages'
fix(o1_transformation.py): fix provider passed for supported param checks
test(base_llm_unit_tests.py): skip test if api takes >5s to respond
fix(utils.py): return false in 'supports_factory' if can't find value
fix(o1_transformation.py): always return stream + stream_options as supported params + handle stream options being passed in for azure o1
feat(openai.py): support stream faking natively in openai handler
Allows o1 calls to be faked for just the "o1" model, allows native streaming for o1-mini, o1-preview
Fixes #7292