Skip to content

Handle file content type transformation in responses api #11310

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

Conversation

jaymegordo
Copy link
Contributor

@jaymegordo jaymegordo commented Jun 1, 2025

Handle file content type transformation in responses api

Relevant issues

Fixes #11309

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix

Changes

Copy link

vercel bot commented Jun 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 2, 2025 0:31am

@CLAassistant
Copy link

CLAassistant commented Jun 1, 2025

CLA assistant check
All committers have signed the CLA.

@ishaan-jaff ishaan-jaff changed the base branch from main to litellm_staging_responses_file_type June 6, 2025 18:12
@ishaan-jaff ishaan-jaff merged commit 1cfc747 into BerriAI:litellm_staging_responses_file_type Jun 6, 2025
5 of 6 checks passed
@ishaan-jaff
Copy link
Contributor

@jaymegordo curious would you be interested in joining us at LiteLLM ? We're hiring a founding backend engineer. If interested can you DM here https://www.linkedin.com/in/reffajnaahsi/

ishaan-jaff added a commit that referenced this pull request Jun 6, 2025
…ntent` doesn't support file content type (#11494)

* Handle file content type transformation in responses api (#11310)

* Handle file content type transformation in responses api

* change to use input_file

* -

* TestLiteLLMCompletionResponsesConfig

* test: TestLiteLLMCompletionResponsesConfig

* fix: fix linting

---------

Co-authored-by: Jayme Gordon <jayme_gordon@icloud.com>
stefan-- pushed a commit to stefan--/litellm that referenced this pull request Jun 12, 2025
…ntent` doesn't support file content type (BerriAI#11494)

* Handle file content type transformation in responses api (BerriAI#11310)

* Handle file content type transformation in responses api

* change to use input_file

* -

* TestLiteLLMCompletionResponsesConfig

* test: TestLiteLLMCompletionResponsesConfig

* fix: fix linting

---------

Co-authored-by: Jayme Gordon <jayme_gordon@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: _transform_responses_api_content_to_chat_completion_content` doesn't support file content type
3 participants