Spaces:
Paused
Paused
Fix frontend modelPath for owl-alpha
Browse files- patch_frontend.py +3 -3
patch_frontend.py
CHANGED
|
@@ -22,7 +22,7 @@ new_models = """ {
|
|
| 22 |
id: 'owl-alpha',
|
| 23 |
name: 'Owl Alpha',
|
| 24 |
description: 'OpenRouter · mạnh · đa năng',
|
| 25 |
-
modelPath: '
|
| 26 |
avatarUrl: 'https://huggingface.co/api/avatars/openrouter',
|
| 27 |
recommended: true,
|
| 28 |
},
|
|
@@ -60,7 +60,7 @@ new_models = """ {
|
|
| 60 |
id: 'gemini-2.0-flash',
|
| 61 |
name: 'Gemini 2.0 Flash',
|
| 62 |
description: 'Rẻ · nhanh · OpenRouter',
|
| 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: 'openai/openrouter/owl-alpha',
|
| 26 |
avatarUrl: 'https://huggingface.co/api/avatars/openrouter',
|
| 27 |
recommended: true,
|
| 28 |
},
|
|
|
|
| 60 |
id: 'gemini-2.0-flash',
|
| 61 |
name: 'Gemini 2.0 Flash',
|
| 62 |
description: 'Rẻ · nhanh · OpenRouter',
|
| 63 |
+
modelPath: 'openai/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")
|