Skip to content

Handle OpenAI::Files request parameters #597

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

okorepanov
Copy link

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?

Description

In my case, we use LiteLLM as main LLM provider.
I was aiming to use a Batches API via Azure provider, and to so, I have to manually pass additional parameters in LiteLLM API requests.

For example, in order to read file content via Files API, we use additional provider parameter.

def get_file_content(file_id:)
  client.files.content(id: file_id, parameters: { provider: 'azure' })
end

Currently we Monkey Patched OpenAI::Files module to handle parameters key, until appropriate changes will be merged or implemented.

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.

1 participant