Originally created by @squinn1 on GitHub (Mar 13, 2025).
Check Existing Issues
I have searched the existing issues and discussions.
Problem Description
Hi,
I am having an issue where my calls to LLM live behind a proxy which you must supply an access token retrieved from an identity provider in order to authenticate to the proxy (and therefore make calls to LLM's).
These access tokens expire after 24 hours which means I only get a days use before having to generate a new one.
Desired Solution you'd like
I believe the most general solution for this would be as follows:
add an env var OPENAI_API_KEY_FILE
the env var would point to a file (e.g. /foo/token.txt) which contains the token
the app would then poll the file, and update the api key if it has changed
on my side I can then configure a sidecar with a shared volume which can write out access tokens to the required file.
Alternatives Considered
No response
Additional Context
No response
Originally created by @squinn1 on GitHub (Mar 13, 2025).
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
Hi,
I am having an issue where my calls to LLM live behind a proxy which you must supply an access token retrieved from an identity provider in order to authenticate to the proxy (and therefore make calls to LLM's).
These access tokens expire after 24 hours which means I only get a days use before having to generate a new one.
### Desired Solution you'd like
I believe the most general solution for this would be as follows:
- add an env var OPENAI_API_KEY_FILE
- the env var would point to a file (e.g. /foo/token.txt) which contains the token
- the app would then poll the file, and update the api key if it has changed
on my side I can then configure a sidecar with a shared volume which can write out access tokens to the required file.
### Alternatives Considered
_No response_
### Additional Context
_No response_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @squinn1 on GitHub (Mar 13, 2025).
Check Existing Issues
Problem Description
Hi,
I am having an issue where my calls to LLM live behind a proxy which you must supply an access token retrieved from an identity provider in order to authenticate to the proxy (and therefore make calls to LLM's).
These access tokens expire after 24 hours which means I only get a days use before having to generate a new one.
Desired Solution you'd like
I believe the most general solution for this would be as follows:
on my side I can then configure a sidecar with a shared volume which can write out access tokens to the required file.
Alternatives Considered
No response
Additional Context
No response