fix: resolve conflicts for upstream sync PR #41 - #45
Closed
Cartofante wants to merge 4202 commits into
Closed
Conversation
* include server_tool_use in streaming usage * add test
…#16791) * fix transcription exception handling * reraise the exception
* init RAG api types * add RAG endpoints * init main.py for RAG ingest API * init RecursiveCharacterTextSplitter * add BaseRAGIngestion * fix OpenAIRAGIngestion * fix img handler * init OpenAIRAGIngestion * init BedrockRAGIngestion * init BedrockRAGIngestion * init rag tests * init BedrockVectorStoreOptions * implement BedrockRAGIngestion * add BaseRAGAPI * add endpoint for RAG ingest * add ingest RAG endpoints * add test doc * add parse_rag_ingest_request * update endpoints * docs add docs for new RAG API * fix qa check * fix linting * docs ficx * docs * add max depth checks * docs anthropic
…text-format-bridge-conversion fix: Support response_format parameter in completion -> responses bridge
- Automatically pass LiteLLM virtual key context as X-LiteLLM-* headers - Includes key_alias, user_id, team_id, org_id, and user_email - No configuration required - always enabled for application/user tracking - Excludes sensitive data (metadata, API tokens) for security - Add comprehensive tests (30 tests, all passing) - Update documentation with header details
This should allow postgres to perform a more efficient index scan instead of a sequential table scan. These two queries consistently show up in the longest-running ones in our instance, and are a major latency source for the usage page on the admin UI.
…meters (BerriAI#17019) - Add model identifier to FLASH_IMAGE_PREVIEW_MODEL_IDENTIFIERS - Add imageSize parameter support (1K, 2K, 4K) with GeminiImageSize type - Add tests for imageSize parameter transformation - Update documentation with new model
[Feature] UI - Disable edit, delete, info, for dynamically generated spend tags
[Feature] UI - User Table Sort by All
…s_fix [Feature] UI - Org Admin Team Permissions Fix
…) (BerriAI#17306) Handle the case where metadata is explicitly set to null/None in the request body. This was causing a 401 error with "'NoneType' object has no attribute 'get'" when calling /v1/batches with metadata: null. The fix uses `or {}` instead of a default dict value since the key exists but has a None value.
* feat: add experimental latest-user filtering for Bedrock * doc: add experimental bedrock latest-message flag
…cks pricing test). (BerriAI#17277) * update databricks pricing and add DBU<>USD test * Refactor test_databricks_pricing.py Removed unnecessary sys.path modification and cleaned up comments.
…ype (request/response), image support (BerriAI#17338) * refactor(generic_guardrail_api.py): refactor to update to new guardrail api logic * refactor: refactor llm api integrations to support passing in text as a list[str] instead of one at a time * refactor: fix linting errors * refactor: pass request type to guardrail api allows request vs. response processing to occur * feat: pass user api key dict information to the guardrail api * fix: pass user api key dict information to the guardrail api * feat: pass litellm call id + trace id, if present * docs: update docs
We recommend using 10–20 connections. Our actual default is 10, but the documentation incorrectly listed the default as 100.
The default is 10 seconds, not 30.
* add OPENAI_COMPATIBLE_BATCH_AND_FILES_PROVIDERS * fix use OPENAI_COMPATIBLE_BATCH_AND_FILES_PROVIDERS * add _get_batch_job_total_usage_from_file_content * fixes for vLLM + 12 labs async invoke * fix: vLLM Batch APIs * afile_retrieve * test_hosted_vllm_full_workflow * fix SERVER_URL for test
…ribute_error_code_raise Fix 500 error for malformed request
…ader_forwarding Fix: litellm user auth not passing issue
…ute_issue Add other routes in jwt auth
…7104) * docs: add Azure AI Foundry documentation for Claude models Add documentation explaining how to use Claude models (Sonnet 4.5, Haiku 4.5, Opus 4.1) deployed on Azure AI Foundry with LiteLLM. Azure exposes Claude using Anthropic's native API, so users can use the existing anthropic/ provider with their Azure endpoint. Closes BerriAI#17066 * docs: Add alternative method for Azure AI Foundry using anthropic/ provider Document that users can use anthropic/ provider with Azure endpoint as an alternative to the dedicated azure_ai/ provider.
* Update constants.py added constants * Update base_aws_llm.py added steps * Update invoke_handler.py added openai support * Update base_invoke_transformation.py added * Update test_bedrock_completion.py added
[Fix] Bedrock Guardrail Indent and Import fix
[Infra] Add Google Private API Endpoint to Vertex AI fields
Automatic sync from upstream BerriAI/litellm Preparing for v1.79.3-stable release Strategy: Merge with history preservation (main mirrors upstream)
Conflict resolution strategy: - Preserved CARTO customizations in infrastructure files - Accepted upstream improvements to core LiteLLM functionality - Fixed upstream bugs in batch_utils.py (missing model_name parameter) - Fixed linting issues (unused imports, type errors, complexity warnings) Testing: - ✅ make format passed (626 files reformatted) - ✅ make lint passed (Black + Ruff checks) - ✅ make lint-mypy passed (MyPy type checking) - 🔄 make test-unit running (5221 tests with 4 parallel workers) Files resolution summary: - Accepted upstream: 631 files (core litellm, tests, docs, UI) - CARTO preserved: 0 conflicted files (CARTO workflows already non-conflicting) - Manually reviewed: 7 files (Dockerfile, Makefile, docker/Dockerfile.non_root, README.md, .circleci/config.yml, .circleci/requirements.txt, ci_cd/security_scans.sh) Key changes: - OpenAI SDK upgraded: 1.99.5 → 2.8.0 (upstream) - Added responses==0.25.7 to CircleCI requirements - Fixed batches/batch_utils.py missing model_name parameters - Fixed generic_guardrail_api.py TypedDict literal-required error - Added PLR0915 noqa comments for complex functions Total files modified: 939 (156 added, 9 modified, 81 deleted, 3 renamed, 690 from formatting)
Collaborator
Author
|
5 tasks
8 tasks
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.
⛔ CRITICAL: MERGE INSTRUCTIONS ⛔
Why This Matters
What Happens If You Squash
🔧 Automated Conflict Resolution
This PR resolves merge conflicts in #41.
🎯 Resolution Strategy
Followed strict priority order:
📋 Files Modified
Total conflicts resolved: 632 files
CARTO versions kept:
Upstream versions accepted: 631 files
Manually merged: 7 files (all accepted upstream after review)
🐛 Bugs Fixed During Resolution
batch_utils.py - Fixed missing `model_name` parameter in 4 functions
generic_guardrail_api.py - Fixed MyPy TypedDict literal-required error
Complexity warnings - Added noqa comments
✅ Testing Results
🔑 Key Changes
Dependencies:
Cleanup:
New Features from Upstream:
🔍 Review Guidelines
Please verify:
📊 Statistics
📝 Notes
OpenAI SDK Upgrade:
Docker Optimizations:
🔄 What Happens After Merge
When this PR is merged into `carto/main`:
Branch flow:
```
upstream → main (mirror) → carto/main (via this PR)
```
🤖 Automated conflict resolution by Claude Code
Resolves conflicts in #41