aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/assistant.py
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2026-04-29 14:47:32 +0200
committersalmonik <raisersoft@proton.me>2026-04-29 14:47:32 +0200
commit8a4352ebb5e15ff4be82a9b4e111c1535aab349e (patch)
tree2c4d5b4b65bdc8308b35c411cffa7f17b1bfeb4d /cogs/assistant.py
parentfix: fallback to plaintext if no json is provided for assistant.py (diff)
parentproper context for settings (diff)
downloadsenator-sperma-8a4352ebb5e15ff4be82a9b4e111c1535aab349e.tar.gz
senator-sperma-8a4352ebb5e15ff4be82a9b4e111c1535aab349e.zip
Merge branch 'dev'
Signed-off-by: salmonik <raisersoft@proton.me>
Diffstat (limited to 'cogs/assistant.py')
-rw-r--r--cogs/assistant.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/cogs/assistant.py b/cogs/assistant.py
index a89c356..a91d027 100644
--- a/cogs/assistant.py
+++ b/cogs/assistant.py
@@ -16,8 +16,6 @@ from cogs.downloader import Downloader
16 16
17logger = logging.getLogger(__name__) 17logger = logging.getLogger(__name__)
18 18
19AI_MODEL = "z-ai/glm-4.5-air:free"
20
21class Jarvis(commands.Cog): 19class Jarvis(commands.Cog):
22 def __init__(self, bot): 20 def __init__(self, bot):
23 self.bot = bot 21 self.bot = bot
@@ -102,7 +100,7 @@ class Jarvis(commands.Cog):
102 @staticmethod 100 @staticmethod
103 def _build_payload(messages): 101 def _build_payload(messages):
104 return { 102 return {
105 "model": AI_MODEL, 103 "model": os.getenv("OPENROUTER_MODEL"),
106 "messages": messages, 104 "messages": messages,
107 "response_format": Jarvis._get_response_schema(), 105 "response_format": Jarvis._get_response_schema(),
108 "plugins": [{"id": "response-healing"}] 106 "plugins": [{"id": "response-healing"}]