run-llama / rags

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

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

Open nickknyc opened 11 months ago

nickknyc commented 11 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 11 months ago

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

nickknyc commented 11 months ago

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