Skip to content

Commit

Permalink
Changed secret key path in logs message (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
art-from-the-machine authored Jul 2, 2024
1 parent 0f833c3 commit 8ee5ee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/llm/openai_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def auto_resolve_endpoint(model_name, endpoints):
if 'Fallout4' in config.game:
game_installation_page = 'https://art-from-the-machine.github.io/Mantella/pages/installation_fallout4.html#language-models-llms'

logging.error(f'''No secret key found in MantellaSoftware/GPT_SECRET_KEY.txt.
Please create a secret key and paste it in your Mantella mod folder's SKSE/Plugins/MantellaSoftware/GPT_SECRET_KEY.txt file.
logging.error(f'''No secret key found in GPT_SECRET_KEY.txt.
Please create a secret key and paste it in your Mantella mod folder's GPT_SECRET_KEY.txt file.
If you are using OpenRouter (default), you can create a secret key in Account -> Keys once you have created an account: https://openrouter.ai/
If using OpenAI, see here on how to create a secret key: https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key
If you are running a model locally, please ensure the service (Kobold / Text generation web UI) is running.
Expand Down
2 changes: 1 addition & 1 deletion src/stt.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __get_api_key(self) -> str:
self.__api_key: str = f.readline().strip()

if not self.__api_key:
logging.error(f'''No secret key found in MantellaSoftware/GPT_SECRET_KEY.txt. Please create a secret key and paste it in your Mantella mod folder's SKSE/Plugins/MantellaSoftware/GPT_SECRET_KEY.txt file.
logging.error(f'''No secret key found in GPT_SECRET_KEY.txt. Please create a secret key and paste it in your Mantella mod folder's GPT_SECRET_KEY.txt file.
If you are using OpenRouter (default), you can create a secret key in Account -> Keys once you have created an account: https://openrouter.ai/
If using OpenAI, see here on how to create a secret key: https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key
If you are running a model locally, please ensure the service (Kobold / Text generation web UI) is running.''')
Expand Down

0 comments on commit 8ee5ee2

Please sign in to comment.