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 for PortKey API gateway or extra_headers env variable #2755

Open
jglamine opened this issue Jan 2, 2025 · 0 comments
Open

Support for PortKey API gateway or extra_headers env variable #2755

jglamine opened this issue Jan 2, 2025 · 0 comments

Comments

@jglamine
Copy link

jglamine commented Jan 2, 2025

Issue

I'm trying to connect to PortKey, which is an LLM API gateway. Portkey provides an OpenAPI compatible API, but it requires an extra x-portkey-virtual-key header to route to the appropriate underlying model/configuration.

LiteLLM supports passing extra_headers. Could we expose this to Aider?

Possible solutions

  1. Add direct support for PortKey with a PORTKEY_VIRTUAL_KEY env variable.
  2. Add support for an OPENAI_API_EXTRA_HEADERS env variable which contains a list of extra headers to pass.

Option 2 seems more flexible.

Version and model info

None

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

No branches or pull requests

1 participant