barunsaha commited on
Commit
a0d261f
·
1 Parent(s): 038342d

Update key length in documentation

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. src/slidedeckai/helpers/llm_helper.py +1 -1
app.py CHANGED
@@ -143,7 +143,7 @@ def are_all_inputs_valid(
143
  ):
144
  handle_error(
145
  'The LLM settings do not look correct. Make sure that an API key/access token'
146
- ' is provided if the selected LLM requires it. An API key should be 6-94 characters'
147
  ' long, only containing alphanumeric characters, hyphens, and underscores.\n\n'
148
  'If you are using Azure OpenAI, make sure that you have provided the additional and'
149
  ' correct configurations.',
 
143
  ):
144
  handle_error(
145
  'The LLM settings do not look correct. Make sure that an API key/access token'
146
+ ' is provided if the selected LLM requires it. An API key should be 6-200 characters'
147
  ' long, only containing alphanumeric characters, hyphens, and underscores.\n\n'
148
  'If you are using Azure OpenAI, make sure that you have provided the additional and'
149
  ' correct configurations.',
src/slidedeckai/helpers/llm_helper.py CHANGED
@@ -29,7 +29,7 @@ except ImportError:
29
 
30
  LLM_PROVIDER_MODEL_REGEX = re.compile(r'\[(.*?)\](.*)')
31
  OLLAMA_MODEL_REGEX = re.compile(r'[a-zA-Z0-9._:-]+$')
32
- # 128 characters long, only containing alphanumeric characters, hyphens, and underscores
33
  API_KEY_REGEX = re.compile(r'^[a-zA-Z0-9_-]{6,200}$')
34
 
35
 
 
29
 
30
  LLM_PROVIDER_MODEL_REGEX = re.compile(r'\[(.*?)\](.*)')
31
  OLLAMA_MODEL_REGEX = re.compile(r'[a-zA-Z0-9._:-]+$')
32
+ # 200 characters long, only containing alphanumeric characters, hyphens, and underscores
33
  API_KEY_REGEX = re.compile(r'^[a-zA-Z0-9_-]{6,200}$')
34
 
35