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

OpenAI base URL environment variable: OPENAI_API_BASE_URL vs OPENAI_BASE_URL #716

Closed
efung opened this issue Apr 26, 2024 · 1 comment · Fixed by #717
Closed

OpenAI base URL environment variable: OPENAI_API_BASE_URL vs OPENAI_BASE_URL #716

efung opened this issue Apr 26, 2024 · 1 comment · Fixed by #717

Comments

@efung
Copy link
Contributor

efung commented Apr 26, 2024

OpenAI's API clients support environment variables for specifying the base URL, typically used to connect to OpenAI's servers through a proxy server.

In both their Node API and their Python API, the name of the environment variable is OPENAI_BASE_URL:

Can promptfoo be updated to support the same variable?

There's currently an OPENAI_API_BASE_URL added in #177, which may have been a typo? Or perhaps OpenAI added that variable later?

@typpo
Copy link
Collaborator

typpo commented Apr 26, 2024 via email

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 a pull request may close this issue.

2 participants