refactor: rename HERMES_OPENAI_API_KEY to VOICE_TOOLS_OPENAI_KEY

- Updated the environment variable name from HERMES_OPENAI_API_KEY to VOICE_TOOLS_OPENAI_KEY across multiple files to avoid interference with OpenRouter.
- Adjusted related error messages and configuration prompts to reflect the new variable name, ensuring consistency throughout the codebase.
This commit is contained in:
Teknium 2026-02-23 23:21:33 +00:00
parent 4d1f2ea522
commit 0858ee2f27
6 changed files with 18 additions and 18 deletions

View file

@ -1003,10 +1003,10 @@ class GatewayRunner:
)
else:
error = result.get("error", "unknown error")
if "OPENAI_API_KEY" in error or "HERMES_OPENAI_API_KEY" in error:
if "OPENAI_API_KEY" in error or "VOICE_TOOLS_OPENAI_KEY" in error:
enriched_parts.append(
"[The user sent a voice message but I can't listen "
"to it right now~ HERMES_OPENAI_API_KEY isn't set up yet "
"to it right now~ VOICE_TOOLS_OPENAI_KEY isn't set up yet "
"(';w;') Let them know!]"
)
else: