art-from-the-machine / Mantella

Mantella is a Skyrim and Fallout 4 mod which allows you to naturally speak to NPCs using Whisper (speech-to-text), LLMs (text generation), and xVASynth / XTTS (text-to-speech).
https://art-from-the-machine.github.io/Mantella/
GNU General Public License v3.0
153 stars 38 forks source link

Search for secret key in mod parent folder #319

Closed art-from-the-machine closed 1 week ago

art-from-the-machine commented 1 week ago

As well as checking the folder the exe is running in, check if a secret key has been saved to a GPT_SECRET_KEY.txt file in the Mantella mod's parent folder.

When Mantella.exe is run via Mantella/SKSE/Plugins/MantellaLauncher.dll, the exe's directory is Mantella/SKSE/Plugins/MantellaSoftware/Mantella.exe. To save the player from having to click though a bunch of folders to get to Mantella/SKSE/Plugins/MantellaSoftware/GPT_SECRET_KEY.txt, the secret key is instead stored in Mantella/GPT_SECRET_KEY.txt.