cxumol commited on
Commit
877dc75
·
unverified ·
1 Parent(s): 772afc4

more clear error message

Browse files
Files changed (1) hide show
  1. app/util.py +1 -1
app/util.py CHANGED
@@ -48,7 +48,7 @@ def is_valid_openai_api_key(api_base: str, api_key: str) -> bool:
48
  def checkAPI(api_base: str, api_key: str):
49
  if not is_valid_openai_api_key(api_base, api_key):
50
  raise ValueError(
51
- "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"
52
  )
53
 
54
 
 
48
  def checkAPI(api_base: str, api_key: str):
49
  if not is_valid_openai_api_key(api_base, api_key):
50
  raise ValueError(
51
+ "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"
52
  )
53
 
54