Skip to content

Commit

Permalink
more clear error message
Browse files Browse the repository at this point in the history
  • Loading branch information
cxumol authored Apr 4, 2024
1 parent 772afc4 commit 877dc75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def is_valid_openai_api_key(api_base: str, api_key: str) -> bool:
def checkAPI(api_base: str, api_key: str):
if not is_valid_openai_api_key(api_base, api_key):
raise ValueError(
"API not available. Maybe it's OpenAI's (or AI provider's) fault, or you setup your AI APIs icorrectly. If you don't have any API key, try get one from https://beta.openai.com/account/api-keys"
"API not available. Did you forget to setup your API Keys? If you don't have any API key, try getting one from https://beta.openai.com/account/api-keys"
)


Expand Down

0 comments on commit 877dc75

Please sign in to comment.