Spaces:
Sleeping
Sleeping
prompt fixed to use same lang as msg
Browse files
app.py
CHANGED
|
@@ -43,8 +43,8 @@ def explain(req: ExplainRequest):
|
|
| 43 |
"Output only the explanation as bullet points. "
|
| 44 |
"Limit each bullet to 1–2 sentences. "
|
| 45 |
"Limit the number of bullets to 3-4 "
|
| 46 |
-
"Reply in the same language as the user's message. "
|
| 47 |
f"Message:\n\n{user_message}"
|
|
|
|
| 48 |
)
|
| 49 |
|
| 50 |
url = "https://openrouter.ai/api/v1/chat/completions"
|
|
|
|
| 43 |
"Output only the explanation as bullet points. "
|
| 44 |
"Limit each bullet to 1–2 sentences. "
|
| 45 |
"Limit the number of bullets to 3-4 "
|
|
|
|
| 46 |
f"Message:\n\n{user_message}"
|
| 47 |
+
"Respond using the same language as the message."
|
| 48 |
)
|
| 49 |
|
| 50 |
url = "https://openrouter.ai/api/v1/chat/completions"
|