We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
api_base
If I set the environment variables OPENAI_API_KEY and OPENAI_BASE_URL, I can successfully run this python script:
OPENAI_API_KEY
OPENAI_BASE_URL
from openai import OpenAI client = OpenAI() chat_completion = client.chat.completions.create( messages=[ { "role": "user", "content": "Hello world!", } ], model="gpt-3.5-turbo", ) print(chat_completion.choices[0].message.content)
$ export OPENAI_API_KEY = "abc123" $ export OPENAI_BASE_URL = "https://paw-lu.com/api/v1" $ python run_openai.py Hello! How can I assist you today?
However when I try to use the same values in elia's config:
[[ models ]] name = "gpt-3.5-turbo" display_name = "Hello" api_key = "abc123" api_base = "https://paw-lu.com/api/v1"
I get a 500: internal server error from OpenAI.
500: internal server error from OpenAI
What am I doing wrong here that makes the two inconsistent?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I set the environment variables
OPENAI_API_KEY
andOPENAI_BASE_URL
, I can successfully run this python script:However when I try to use the same values in elia's config:
I get a
500: internal server error from OpenAI
.What am I doing wrong here that makes the two inconsistent?
The text was updated successfully, but these errors were encountered: