Update OpenRouter models path to absolute directory

This commit is contained in:
Slipstream 2025-05-07 15:44:07 -06:00
parent 4f9d9f81a8
commit 43e401c66d
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -155,7 +155,7 @@ class ModerationCog(commands.Cog):
def _load_openrouter_models(self):
"""Loads OpenRouter model data from the JSON file."""
models_json_path = "data/openrouter_models.json" # Relative to bot's root
models_json_path = "/home/server/wdiscordbot/data/openrouter_models.json" # Relative to bot's root
try:
if os.path.exists(models_json_path):
with open(models_json_path, "r", encoding="utf-8") as f: