mirror of
https://gitlab.com/pancakes1234/wdiscordbotserver.git
synced 2025-06-16 07:14:21 -06:00
Update OpenRouter models path to absolute directory
This commit is contained in:
parent
4f9d9f81a8
commit
43e401c66d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user