Rename OPENAI_API_KEY to HERMES_OPENAI_API_KEY in configuration and codebase for clarity and to avoid conflicts. Update related documentation and error messages to reflect the new key name, ensuring backward compatibility with existing setups.

This commit is contained in:
teknium1 2026-02-17 03:11:17 -08:00
parent 061fa70907
commit bdac541d1e
5 changed files with 23 additions and 19 deletions

View file

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