Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include a param for OpenAIProvider to look for a custom env var #188

Open
danfhernandez opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@danfhernandez
Copy link
Contributor

danfhernandez commented Jan 28, 2025

If I'm using an openai compatible api, it's likely that I've already set an api key to an environment variable. For example, GROQ_API_KEY for groq. So it would be nice to be able to do the following instead of including the API key as a prop:

<OpenAIProvider
      apiKeyEnvironmentVariable="GROQ_API_KEY"
      baseURL="https://api.groq.com/openai/v1"
    > ... 
</OpenAIProvider>
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

No branches or pull requests

1 participant