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:
parent
061fa70907
commit
bdac541d1e
5 changed files with 23 additions and 19 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue