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

Add forward_headers support to allow passing headers to LLM directly #217

Closed
VisargD opened this issue Feb 17, 2024 · 0 comments · Fixed by #194
Closed

Add forward_headers support to allow passing headers to LLM directly #217

VisargD opened this issue Feb 17, 2024 · 0 comments · Fixed by #194
Assignees
Labels
enhancement New feature or request triage

Comments

@VisargD
Copy link
Collaborator

VisargD commented Feb 17, 2024

Add a setting named forward_headers which allows users to add header names which will be picked up from the request headers and will be directly passed to LLM request without any overwrite/manipulation from gateway. This will allow users to add custom auth headers which are not simple tokens but have multiple moving pieces like session token, user token, IAM based token etc.

This can be a part of configs as well as headers:

  • forward_headers config setting which expects an array of header names.
  • x-portkey-forward-headers header which accepts comma separated header names. This header will be applied globally for the request and will overwrite forward_headers sent in config for that call.
@VisargD VisargD added the enhancement New feature or request label Feb 17, 2024
@VisargD VisargD self-assigned this Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant