- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.6k
(v0) Unified file id - allow calling multiple providers with same file id #9718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            krrishdholakia
  merged 19 commits into
  litellm_staging_04_02_2025
from
litellm_unified_files_api
  
      
      
   
  Apr 3, 2025 
      
    
                
     Merged
            
            (v0) Unified file id - allow calling multiple providers with same file id #9718
                    krrishdholakia
  merged 19 commits into
  litellm_staging_04_02_2025
from
litellm_unified_files_api
  
      
      
   
  Apr 3, 2025 
              
            Conversation
  
    
      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
    
  
  
    
    …support allow developer to specify all the models they want to call with the file
enables file upload to work for chat completion requests as well
| The latest updates on your projects. Learn more about Vercel for Git ↗︎ 
 | 
fails on ci/cd - not clear why
eb75dac
      into
      
  
    litellm_staging_04_02_2025
  
    
        36 of 45 checks passed
      
      
    
  krrishdholakia 
      added a commit
      that referenced
      this pull request
    
      Apr 3, 2025 
    
    
      
  
    
      
    
  
* Add date picker to usage tab + Add reasoning_content token tracking across all providers on streaming (#9722) * feat(new_usage.tsx): add date picker for new usage tab allow user to look back on their usage data * feat(anthropic/chat/transformation.py): report reasoning tokens in completion token details allows usage tracking on how many reasoning tokens are actually being used * feat(streaming_chunk_builder.py): return reasoning_tokens in anthropic/openai streaming response allows tracking reasoning_token usage across providers * Fix update team metadata + fix bulk adding models on Ui (#9721) * fix(handle_add_model_submit.tsx): fix bulk adding models * fix(team_info.tsx): fix team metadata update Fixes #9689 * (v0) Unified file id - allow calling multiple providers with same file id (#9718) * feat(files_endpoints.py): initial commit adding 'target_model_names' support allow developer to specify all the models they want to call with the file * feat(files_endpoints.py): return unified files endpoint * test(test_files_endpoints.py): add validation test - if invalid purpose submitted * feat: more updates * feat: initial working commit of unified file id translation * fix: additional fixes * fix(router.py): remove model replace logic in jsonl on acreate_file enables file upload to work for chat completion requests as well * fix(files_endpoints.py): remove whitespace around model name * fix(azure/handler.py): return acreate_file with correct response type * fix: fix linting errors * test: fix mock test to run on github actions * fix: fix ruff errors * fix: fix file too large error * fix(utils.py): remove redundant var * test: modify test to work on github actions * test: update tests * test: more debug logs to understand ci/cd issue * test: fix test for respx * test: skip mock respx test fails on ci/cd - not clear why * fix: fix ruff check * fix: fix test * fix(model_connection_test.tsx): fix linting error * test: update unit tests
      
        
      
      
  
    4 tasks
  
  
    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
Allows developer to call multiple providers with unified file id
Relevant issues
Relevant discussion - #9632
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
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test
Changes
allow developer to specify all the models they want to call with the file
feat(files_endpoints.py): return unified files endpoint
test(test_files_endpoints.py): add validation test - if invalid purpose submitted
feat: more updates
feat: initial working commit of unified file id translation
fix: additional fixes
fix(router.py): remove model replace logic in jsonl on acreate_file
enables file upload to work for chat completion requests as well
fix(files_endpoints.py): remove whitespace around model name
fix(azure/handler.py): return acreate_file with correct response type