How to use different env variable name for API Key in openai-compatible endpoint? #476
Unanswered
awagner-mainz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I want to set up a workflow comparing different LLMs for the spancat/ner task(s). Besides the current OpenAI GPT-4o, I also have access to models hosted by my infrastructure provider via a "OpenAI compatible" API. I have tried this with insomnium and it works, as long as I provide my infrastructure provider's API key in the Bearer Token HTTP Request Header.
I have my OpenAI API key in an env variable
$OPENAI_API_KEY
and my provider's API key in another env variable$PROV_API_KEY
. How can I make spacy-llm use the latter env variable to populate the Bearer Token Header?I suppose I cannot use something like
, can I?
Can I somehow temporarily shuffle/rename my env variables in an automated way from the spacy setup?
TIA
Beta Was this translation helpful? Give feedback.
All reactions