🔄 Upstream Sync: LiteLLM v1.81.0-stable - #87
Conversation
…ridge_usage Fix: output_tokens_details.reasoning_tokens None
* Cleanup code for user cli auth, and make sure not to prompt user for team multiple times while polling * Adding tests * Cleanup normalize teams some more
…erriAI#19944) The regex in get_vertex_model_id_from_url() was using [^/:]+ which stopped at the first slash, truncating model names like 'gcp/google/gemini-2.5-flash' to just 'gcp'. This caused access_groups checks to fail for custom model names. Changed the pattern to [^:]+ to allow slashes in model names, only stopping at the colon before the action (e.g., :generateContent).
…tore [Feature] UI - Spend Logs: Settings Modal
…rror_message [Feature] Add error_message Search in Spend Logs Endpoint
…ssthroughs to stop working for router models (BerriAI#19967) * fix(vertex_ai): replace custom model names with actual Vertex AI model names in passthrough URLs (BerriAI#19948) When the passthrough URL already contains project and location, the code was skipping the deployment lookup and forwarding the URL as-is to Vertex AI. For custom model names like gcp/google/gemini-2.5-flash, Vertex AI returned 404 because it only knows the actual model name (gemini-2.5-flash). The fix makes the deployment lookup always run, so the custom model name gets replaced with the actual Vertex AI model name before forwarding. * add _resolve_vertex_model_from_router * fix: get_llm_provider * Potential fix for code scanning alert no. 4020: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: michelligabriele <gabriele.michelli@icloud.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…t in router (BerriAI#19969) * feat: List all available search tools configured in the router. * add debugging search API * add debugging search API
…component [Feature] UI - Tables: Reusable Table Sort Component
…m_search [Feature] UI - Logs: Adding Error message search to ui spend logs
…eams (BerriAI#19972) * fix: create_vector_store_in_db * add team/user to LiteLLM_ManagedVectorStore * add _check_vector_store_access * add new fields * test_check_vector_store_access * add vector_store/list endpoints * fix code QA checks
…7`, `z-ai/glm-4.7-flash`, and `minimax/minimax-m2.1`. to model prices and context window (BerriAI#19938) Co-authored-by: Rushil Chugh <Rushil>
8bb3acc to
32b6e59
Compare
🔧 CI Fix AppliedError Fixed: Fix Applied:
Note: The TypeScript error mentioned in Docker logs ( Verification: Pushed to branch, CI will re-run automatically. Attempt #5 - Restored missing bedrock/realtime module from upstream. |
✅ CI Fix CompleteFixes applied and pushed to this PR.
Note CI will re-run automatically. Monitor check results below. Next Steps
🔧 Workflow Details (click to expand)Workflow Run: https://github.com/CartoDB/litellm/actions/runs/21666231016 |
🔧 CI Auto-Fix StartedStatus: ⏳ In progress... Claude Code (Opus 4.5) is analyzing and fixing CI failures. Failed Checks:
Note This may take 15-30 minutes. Fixes will be pushed directly to this PR. |
32b6e59 to
0527f9f
Compare
🔧 CI Fix AppliedErrors Fixed: 1. TypeScript Import ErrorFix: Changed import path from 2. Python Import ErrorFix: Synced Verification: Pushed to branch, CI will re-run automatically. Attempt #6 - Fixed import path typo in MakeModelPublicForm.tsx and synced http_handler.py from upstream. |
✅ CI Fix CompleteFixes applied and pushed to this PR.
Note CI will re-run automatically. Monitor check results below. Next Steps
🔧 Workflow Details (click to expand)Workflow Run: https://github.com/CartoDB/litellm/actions/runs/21666386232 |
🔧 CI Auto-Fix StartedStatus: ⏳ In progress... Claude Code (Opus 4.5) is analyzing and fixing CI failures. Failed Checks:
Note This may take 15-30 minutes. Fixes will be pushed directly to this PR. |
❌ CI Fix FailedThe automated fix encountered an error.
Warning Manual intervention required. Check the workflow logs below. 🔧 Troubleshooting (click to expand)Common issues:
Manual fix steps:
|
🔧 CI Auto-Fix StartedStatus: ⏳ In progress... Claude Code (Opus 4.5) is analyzing and fixing CI failures. Failed Checks:
Note This may take 15-30 minutes. Fixes will be pushed directly to this PR. |
0527f9f to
2b67b50
Compare
🔧 CI Fix AppliedErrors Fixed: 1. Python ModuleNotFoundError (Tests)Root Cause: The Fix: Restored the entire
2. TypeScript Import Error (Docker Build)Root Cause: The file is in Fix: Changed import from Verification: Pushed to branch, CI will re-run automatically. If this fails, I'll analyze the new errors and try again. |
✅ CI Fix CompleteFixes applied and pushed to this PR.
Note CI will re-run automatically. Monitor check results below. Next Steps
🔧 Workflow Details (click to expand)Workflow Run: https://github.com/CartoDB/litellm/actions/runs/21666614474 |
🔧 CI Auto-Fix StartedStatus: ⏳ In progress... Claude Code (Opus 4.5) is analyzing and fixing CI failures. Failed Checks:
Note This may take 15-30 minutes. Fixes will be pushed directly to this PR. |
2b67b50 to
317a708
Compare
🔧 CI Fix AppliedErrors Fixed: 1. Python Import Error (Tests)Root Cause: Fix: Synced entire 2. TypeScript Import Error (Docker Build)Note: The The CI log was showing an outdated error. The NEW error in the file was on line 6: Fix: Changed to Verification: Pushed to branch, CI will re-run automatically. If this fails, I'll analyze the new errors and try again. |
✅ CI Fix CompleteFixes applied and pushed to this PR.
Note CI will re-run automatically. Monitor check results below. Next Steps
🔧 Workflow Details (click to expand)Workflow Run: https://github.com/CartoDB/litellm/actions/runs/21668056939 |
🔧 CI Auto-Fix StartedStatus: ⏳ In progress... Claude Code (Opus 4.5) is analyzing and fixing CI failures. Failed Checks:
Note This may take 15-30 minutes. Fixes will be pushed directly to this PR. |
317a708 to
3159f60
Compare
🔧 CI Fix AppliedErrors Fixed: 1. Python Import ErrorFix: Synced 2. UI Type Error (Docker Build)Fix: Synced Verification: Amended previous CI fix commit and pushed to branch. CI will re-run automatically. Note: The provided CI logs in /tmp were stale. Fetched fresh logs from GitHub Actions run #21668171451. |
✅ CI Fix CompleteFixes applied and pushed to this PR.
Note CI will re-run automatically. Monitor check results below. Next Steps
🔧 Workflow Details (click to expand)Workflow Run: https://github.com/CartoDB/litellm/actions/runs/21668220946 |
🔧 CI Auto-Fix StartedStatus: ⏳ In progress... Claude Code (Opus 4.5) is analyzing and fixing CI failures. Failed Checks:
Note This may take 15-30 minutes. Fixes will be pushed directly to this PR. |
- Add DEFAULT_REDIS_MAJOR_VERSION constant to litellm/constants.py - Restore chat_ui folder from carto/main (ChatUI.tsx and dependencies) - Restore new_usage.tsx component from carto/main - Restore make_model_public_form.tsx component from carto/main Fixes: - ImportError: cannot import name 'DEFAULT_REDIS_MAJOR_VERSION' - Module not found: Can't resolve '@/components/chat_ui/ChatUI' - Module not found: Can't resolve '@/components/new_usage' - Module not found: Can't resolve './make_model_public_form' Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3159f60 to
437e341
Compare
🔧 CI Fix AppliedError Fixed: Root Cause: Fix Applied:
Note on UI Issues:
This fix addresses the Python import error. The UI issues may need separate attention. Verification: Pushed to branch (amended existing CI fix commit), CI will re-run automatically. If CI fails again on UI errors, a more comprehensive UI sync or antd version update will be needed. |
❌ CI Fix FailedThe automated fix encountered an error.
Warning Manual intervention required. Check the workflow logs below. 🔧 Troubleshooting (click to expand)Common issues:
Manual fix steps:
|
🔧 CI Auto-Fix StartedStatus: ⏳ In progress... Claude Code (Opus 4.5) is analyzing and fixing CI failures. Failed Checks:
Note This may take 15-30 minutes. Fixes will be pushed directly to this PR. |
❌ CI Fix FailedThe automated fix encountered an error.
Warning Manual intervention required. Check the workflow logs below. 🔧 Troubleshooting (click to expand)Common issues:
Manual fix steps:
|
🔄 Upstream Sync: LiteLLM v1.81.0-stable
Syncs CARTO's LiteLLM fork with upstream stable release v1.81.0-stable.
1.79.1→v1.81.0-stableCaution
Use "Create a merge commit" only. Squashing destroys upstream history and breaks future syncs.
🧪 Pre-Merge Checklist
pyproject.tomlversion matches upstream📊 Release Information (click to expand)
v1.81.0-stable1.79.1🔀 Branch Flow (click to expand)
BerriAI/litellm:mainmerged intoCartoDB/litellm:mainupstream-sync/v1.81.0-stableupstream-sync/v1.81.0-stable→carto/main📝 CARTO-Specific File Guidelines (click to expand)
When reviewing or resolving conflicts:
✅ Keep CARTO Versions (Ours)
.github/workflows/carto_*.yaml- CARTO workflows.github/workflows/carto-*.yml- CARTO workflowsCARTO_*.md,docs/CARTO_*.md- CARTO documentation🔄 Accept Upstream (Theirs)
pyproject.toml- Version fieldlitellm/- Core library codetests/- Upstream testsrequirements.txt- DependenciesDockerfile,docker/Dockerfile.non_root- CARTO customizationsMakefile- Check# CARTO:sections🔧 Conflict Resolution (click to expand)
If this PR has conflicts:
Option 1: Automated (Recommended)
The carto-upstream-sync-resolver workflow triggers automatically.
What it does:
carto/main→ ✏️ Resolves conflicts → 🧪 Runs tests → 📌 Pushes to this PRYou just need to: Wait for resolution commits, verify CARTO customizations, merge.
Option 2: Manual Resolution
📚 Documentation Links (click to expand)
🤖 This PR was automatically created by the carto-upstream-sync workflow.