Skip to content
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

Support custom default headers in OpenAILLM class. #1088

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

khulaifi95
Copy link

Hi this is my first PR on github. I added header customisation to the OpenAILLM generic inference class for interacting with OpenAI compatible servers.

This would be useful if the server is privately hosted behind a gateway or proxy, where metadata such as model provider or cloud provider is required to authenticate the request.

The parameter is passed directly to both internal OpenAI clients. The simple test case is added.

@khulaifi95 khulaifi95 changed the base branch from main to develop December 26, 2024 17:19
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.

2 participants