Spaces:
Sleeping
Sleeping
Mohammed AL Sarraj commited on
Commit ·
7e6a5ea
1
Parent(s): 85a09fa
fix: correct Cohere model name to command-r-08-2024, use Arabic-specialized model for Arabic tasks
Browse files- app/core/ai.py +5 -5
app/core/ai.py
CHANGED
|
@@ -31,7 +31,7 @@ _FREE_MODELS = {
|
|
| 31 |
"mistral": "mistral-small-latest",
|
| 32 |
"deepseek": "deepseek-chat",
|
| 33 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 34 |
-
"cohere": "command-r",
|
| 35 |
}
|
| 36 |
_PREMIUM_MODELS = {
|
| 37 |
"groq": "llama-3.3-70b-versatile",
|
|
@@ -41,7 +41,7 @@ _PREMIUM_MODELS = {
|
|
| 41 |
"openai": "gpt-4o-mini",
|
| 42 |
"deepseek": "deepseek-chat",
|
| 43 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 44 |
-
"cohere": "command-r",
|
| 45 |
}
|
| 46 |
|
| 47 |
# ── Task-specific model routing ──
|
|
@@ -57,7 +57,7 @@ _TASK_MODELS = {
|
|
| 57 |
"mistral": "mistral-medium-latest",
|
| 58 |
"deepseek": "deepseek-chat",
|
| 59 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 60 |
-
"cohere": "command-
|
| 61 |
},
|
| 62 |
"code": {
|
| 63 |
"groq": "llama-3.3-70b-versatile",
|
|
@@ -66,7 +66,7 @@ _TASK_MODELS = {
|
|
| 66 |
"mistral": "mistral-medium-latest",
|
| 67 |
"deepseek": "deepseek-chat",
|
| 68 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 69 |
-
"cohere": "command-r",
|
| 70 |
},
|
| 71 |
"fast": {
|
| 72 |
"groq": "llama-3.1-8b-instant",
|
|
@@ -75,7 +75,7 @@ _TASK_MODELS = {
|
|
| 75 |
"mistral": "mistral-small-latest",
|
| 76 |
"deepseek": "deepseek-chat",
|
| 77 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 78 |
-
"cohere": "command-r",
|
| 79 |
},
|
| 80 |
}
|
| 81 |
|
|
|
|
| 31 |
"mistral": "mistral-small-latest",
|
| 32 |
"deepseek": "deepseek-chat",
|
| 33 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 34 |
+
"cohere": "command-r-08-2024",
|
| 35 |
}
|
| 36 |
_PREMIUM_MODELS = {
|
| 37 |
"groq": "llama-3.3-70b-versatile",
|
|
|
|
| 41 |
"openai": "gpt-4o-mini",
|
| 42 |
"deepseek": "deepseek-chat",
|
| 43 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 44 |
+
"cohere": "command-r-08-2024",
|
| 45 |
}
|
| 46 |
|
| 47 |
# ── Task-specific model routing ──
|
|
|
|
| 57 |
"mistral": "mistral-medium-latest",
|
| 58 |
"deepseek": "deepseek-chat",
|
| 59 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 60 |
+
"cohere": "command-r7b-arabic-02-2025",
|
| 61 |
},
|
| 62 |
"code": {
|
| 63 |
"groq": "llama-3.3-70b-versatile",
|
|
|
|
| 66 |
"mistral": "mistral-medium-latest",
|
| 67 |
"deepseek": "deepseek-chat",
|
| 68 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 69 |
+
"cohere": "command-r-08-2024",
|
| 70 |
},
|
| 71 |
"fast": {
|
| 72 |
"groq": "llama-3.1-8b-instant",
|
|
|
|
| 75 |
"mistral": "mistral-small-latest",
|
| 76 |
"deepseek": "deepseek-chat",
|
| 77 |
"together": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
| 78 |
+
"cohere": "command-r-08-2024",
|
| 79 |
},
|
| 80 |
}
|
| 81 |
|