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

[Enhancement]: OpenAI custom headers #594

Open
1 task done
mark-bradshaw opened this issue Oct 23, 2024 · 1 comment
Open
1 task done

[Enhancement]: OpenAI custom headers #594

mark-bradshaw opened this issue Oct 23, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request investigating partly implemented Not fully implemented released

Comments

@mark-bradshaw
Copy link

Before Requesting

  • I have searched the existing issues, and there is no existing issue for my feature request

What feature do you want?

I would like the ability to specify a set of custom headers to send along with requests to any chat and embedding models.

My company requires that all requests to 3rd party hosted models be sent through an internal proxy. This allows us to have a way to anonymous personal and customer information, rate limit requests, and budget our spending. To make this work we need to be able to pass along a set of custom headers along with any request that specifies an internal proxy key, app id, username, etc.

We would like to be able to specify a set of headers to pass along with requests when setting up a chat or embedding model. Ideally it would also allow for using environment variables as part of the value of the header, but if it has to be just strings that's workable too. It'd also be nice to be able to set these as global settings, so they just got added to any models that were already configured, or were added later, without needing to copy/paste lots of headers.

@mark-bradshaw mark-bradshaw added the enhancement New feature or request label Oct 23, 2024
@intitni intitni added pending release Finished, but not yet released investigating released partly implemented Not fully implemented and removed planned It's planned investigating pending release Finished, but not yet released labels Nov 17, 2024
@intitni
Copy link
Owner

intitni commented Nov 20, 2024

Let‘s start with adding string values for each OpenAI compatible API models in 0.35.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request investigating partly implemented Not fully implemented released
Projects
None yet
Development

No branches or pull requests

2 participants