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

Merged
merged 4 commits into from
Jan 10, 2025

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
@davidberenstein1957
Copy link
Member

@khulaifi95 could you resolve the merge conflicts? After we can merge :)

@gabrielmbmb gabrielmbmb merged commit 680dd09 into argilla-io:develop Jan 10, 2025
1 check passed
@khulaifi95
Copy link
Author

khulaifi95 commented Jan 12, 2025

@gabrielmbmb Hi Gabriel, thanks for helping the merge. I realised that there were conflicts because my commits were on the forked main branch, but the target was set to be the develop branch. Thank you for solving this :).

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.

4 participants