Spaces:
Paused
Paused
Fix frontend model path to openrouter/openrouter/owl-alpha
Browse files- patch_frontend.py +5 -5
patch_frontend.py
CHANGED
|
@@ -22,14 +22,14 @@ new_models = """ {
|
|
| 22 |
id: 'owl-alpha',
|
| 23 |
name: 'Owl Alpha',
|
| 24 |
description: 'OpenRouter · mạnh · đa năng',
|
| 25 |
-
modelPath: 'openrouter/owl-alpha',
|
| 26 |
avatarUrl: 'https://huggingface.co/api/avatars/openrouter',
|
| 27 |
recommended: true,
|
| 28 |
},
|
| 29 |
{
|
| 30 |
id: 'deepseek-v4-pro',
|
| 31 |
name: 'DeepSeek V4 Pro',
|
| 32 |
-
description: '
|
| 33 |
modelPath: 'deepseek-ai/DeepSeek-V4-Pro',
|
| 34 |
avatarUrl: 'https://huggingface.co/api/avatars/deepseek-ai',
|
| 35 |
recommended: true,
|
|
@@ -59,8 +59,8 @@ new_models = """ {
|
|
| 59 |
{
|
| 60 |
id: 'gemini-2.0-flash',
|
| 61 |
name: 'Gemini 2.0 Flash',
|
| 62 |
-
description: 'Rẻ ·
|
| 63 |
-
modelPath: '
|
| 64 |
avatarUrl: 'https://huggingface.co/api/avatars/google',
|
| 65 |
},
|
| 66 |
"""
|
|
@@ -76,4 +76,4 @@ assert "Qwen3-Coder-Next" in content
|
|
| 76 |
assert "MiniMax-M2.7" in content
|
| 77 |
assert "GLM-5.1" in content
|
| 78 |
assert "gemini-2.0-flash" in content
|
| 79 |
-
print("✅ Frontend patched
|
|
|
|
| 22 |
id: 'owl-alpha',
|
| 23 |
name: 'Owl Alpha',
|
| 24 |
description: 'OpenRouter · mạnh · đa năng',
|
| 25 |
+
modelPath: 'openrouter/openrouter/owl-alpha',
|
| 26 |
avatarUrl: 'https://huggingface.co/api/avatars/openrouter',
|
| 27 |
recommended: true,
|
| 28 |
},
|
| 29 |
{
|
| 30 |
id: 'deepseek-v4-pro',
|
| 31 |
name: 'DeepSeek V4 Pro',
|
| 32 |
+
description: 'Code quality · HF Inference',
|
| 33 |
modelPath: 'deepseek-ai/DeepSeek-V4-Pro',
|
| 34 |
avatarUrl: 'https://huggingface.co/api/avatars/deepseek-ai',
|
| 35 |
recommended: true,
|
|
|
|
| 59 |
{
|
| 60 |
id: 'gemini-2.0-flash',
|
| 61 |
name: 'Gemini 2.0 Flash',
|
| 62 |
+
description: 'Rẻ · nhanh · OpenRouter',
|
| 63 |
+
modelPath: 'openrouter/google/gemini-2.0-flash-001',
|
| 64 |
avatarUrl: 'https://huggingface.co/api/avatars/google',
|
| 65 |
},
|
| 66 |
"""
|
|
|
|
| 76 |
assert "MiniMax-M2.7" in content
|
| 77 |
assert "GLM-5.1" in content
|
| 78 |
assert "gemini-2.0-flash" in content
|
| 79 |
+
print("✅ Frontend patched with correct model paths")
|