[Infra] v1.81.13-nightly Change Copy to main#21357
Merged
yuneng-jiang merged 7 commits intomainfrom Feb 17, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryNightly release v1.81.13 that fixes a key regeneration bug and stabilizes multiple test suites.
Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| litellm/proxy/management_endpoints/key_management_endpoints.py | Fixes a key regeneration bug: removes duplicated logic from regenerate_key_fn that conflicted with _execute_virtual_key_regeneration, and moves _insert_deprecated_key into the helper function. The old code generated two different tokens causing the deprecated key to reference a wrong hash. |
| docs/my-website/docs/proxy/config_settings.md | Adds documentation for the new BEDROCK_MIN_THINKING_BUDGET_TOKENS environment variable with clear description and default value. |
| pyproject.toml | Version bump from 1.81.12 to 1.81.13 in both poetry and commitizen sections. |
| tests/llm_responses_api_testing/base_responses_api.py | Allows reasoning field in responses API validation to be None in addition to dict, fixing validation failures when providers return null reasoning. |
| tests/test_litellm/containers/test_container_integration.py | Adds importlib.reload pattern to test_provider_support to handle stale module references caused by conftest reloading litellm, matching the existing pattern in test_error_handling_integration. |
| tests/test_litellm/llms/meta_llama/test_meta_llama_chat_transformation.py | Replaces a complex async mock-based streaming test with a simpler synchronous test that directly verifies follow_redirects=True on the httpx clients used by BaseOpenAILLM. More reliable and tests the actual behavior. |
| tests/test_litellm/llms/publicai/test_publicai_chat_transformation.py | Adds mocking of supports_function_calling in two tests to prevent failures when the test model name 'swiss-ai-apertus' isn't in the model registry. |
| tests/test_litellm/llms/vertex_ai/rerank/test_vertex_ai_rerank_transformation.py | Adds VERTEXAI_CREDENTIALS and VERTEX_AI_CREDENTIALS to env cleanup list; switches from class-level @patch to instance-level mocking to avoid class-reference issues from importlib.reload(litellm) in conftest. |
| tests/test_litellm/proxy/test_proxy_cli.py | Fixes test_run_server_no_config_passed to avoid clear=True on patch.dict(os.environ) which stripped PATH/HOME in CI. Now selectively removes DB-related env vars and adds mock for litellm.proxy.proxy_server module. Also adds detailed assertion messages. |
Flowchart
flowchart TD
A[regenerate_key_fn] --> B{Is master key?}
B -->|Yes| C[_rotate_master_key]
B -->|No| D[Permission checks]
D --> E[Normalize litellm_changed_by]
E --> F[_persist_deleted_verification_tokens]
F --> G[_execute_virtual_key_regeneration]
G --> G1[get_new_token]
G1 --> G2[prepare_key_update_data]
G2 --> G3["_insert_deprecated_key (NEW - moved here)"]
G3 --> G4[DB update: litellm_verificationtoken]
G4 --> G5[_delete_cache_key_object]
G5 --> G6[async_key_rotated_hook]
G6 --> H[Return GenerateKeyResponse]
style G3 fill:#4CAF50,color:#fff
Last reviewed commit: 3669d54
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.
Relevant issues
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@greptileaiand received a Confidence Score of at least 4/5 before requesting a maintainer reviewCI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Type
🚄 Infrastructure
Changes