Skip to content

Conversation

@joekryan
Copy link

openai was the odd one out - gemini-api already supports api_key_env but openai only looked for api_key in config.

added resolveOpenAIKey function following the same pattern as resolveGeminiAPIKey. now you can use:

ai:
  providers:
    openai:
      model: gpt-5
      api_key_env: OPENAI_API_KEY

instead of hardcoding the key in the config file.

nice project btw, I've been using it all morning :)

@bgdnvk
Copy link
Owner

bgdnvk commented Dec 22, 2025

thanks, will have a look 2mrw and into the other PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants