run-llama / rags

Build ChatGPT over your data, all with natural language
MIT License
6.17k stars 629 forks source link

Metaphor Key - for cloud deploy - no .toml and no .env #51

Open nickknyc opened 8 months ago

nickknyc commented 8 months ago

I am trying to deploy to Azure App Serivices. I have ARM templates that work fine. The one issue I am having is that i need to set API keys as if they are stored as environment variables. For OpenAI - os.environ["OPENAI_API_KEY"] = st.secrets.openai_key from utils.py makes sense

but am not seeing anything that straightforward for metaphor

Am I missing something?

nickknyc commented 8 months ago

with some sage guidance from @logan-markewich -i have tbis figured out - will get pr together today

nickknyc commented 8 months ago

PR Submitted - https://github.com/run-llama/rags/pull/54