https://www.boundaryml.com logo
Anyone else have issues using API keys
# questions
j
Anyone else have issues using API keys from a .env file? Even this default client config isn't work for me:
Copy code
client<llm> CustomGPT4o {
  provider openai
  options {
    model "gpt-4o"
    api_key env.OPENAI_API_KEY
  }
}
If I replace the
env.OPEN_API_KEY
directly, it'll run fine. Using baml-py 0.204.0
v
In the playground or baml-cli or purely python? In python you need to load env vars via dotenv Playground doesn’t use .env
j
Playground. Ah, forgot it had it's own env/API key settings. Thx!