Hussien Haider commited on
Commit
dfd40ba
·
1 Parent(s): d436343
Files changed (1) hide show
  1. app/services/chatbot_service.py +3 -1
app/services/chatbot_service.py CHANGED
@@ -18,6 +18,8 @@ from app.core.config import (
18
  # System prompt — comprehensive description of the entire platform #
19
  # --------------------------------------------------------------------------- #
20
 
 
 
21
  PLATFORM_SYSTEM_PROMPT = """
22
  أنت Cyber، المساعد الذكي الرسمي لمنصة CyberArena.
23
 
@@ -136,7 +138,7 @@ async def _try_mistral(prompt: str) -> Optional[str]:
136
  resp = await client.post(
137
  MISTRAL_API_URL,
138
  json={
139
- "model": MISTRAL_MODEL,
140
  "messages": [
141
  {"role": "system", "content": PLATFORM_SYSTEM_PROMPT},
142
  {"role": "user", "content": prompt},
 
18
  # System prompt — comprehensive description of the entire platform #
19
  # --------------------------------------------------------------------------- #
20
 
21
+ _CHATBOT_MISTRAL_MODEL = "mistral-small-latest"
22
+
23
  PLATFORM_SYSTEM_PROMPT = """
24
  أنت Cyber، المساعد الذكي الرسمي لمنصة CyberArena.
25
 
 
138
  resp = await client.post(
139
  MISTRAL_API_URL,
140
  json={
141
+ "model": _CHATBOT_MISTRAL_MODEL,
142
  "messages": [
143
  {"role": "system", "content": PLATFORM_SYSTEM_PROMPT},
144
  {"role": "user", "content": prompt},