Frontend: update model list
Browse files- patch_frontend.py +26 -18
patch_frontend.py
CHANGED
|
@@ -26,11 +26,19 @@ new_models = """ {
|
|
| 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: 'OpenRouter · code quality · rẻ',
|
| 33 |
-
modelPath: 'openai/deepseek/deepseek-
|
| 34 |
avatarUrl: 'https://huggingface.co/api/avatars/deepseek-ai',
|
| 35 |
recommended: true,
|
| 36 |
},
|
|
@@ -43,23 +51,23 @@ new_models = """ {
|
|
| 43 |
recommended: true,
|
| 44 |
},
|
| 45 |
{
|
| 46 |
-
id: '
|
| 47 |
-
name: '
|
| 48 |
-
description: '
|
| 49 |
-
modelPath: '
|
| 50 |
-
avatarUrl: 'https://huggingface.co/api/avatars/
|
| 51 |
},
|
| 52 |
{
|
| 53 |
-
id: '
|
| 54 |
-
name: '
|
| 55 |
-
description: '
|
| 56 |
-
modelPath: '
|
| 57 |
-
avatarUrl: 'https://huggingface.co/api/avatars/
|
| 58 |
},
|
| 59 |
{
|
| 60 |
id: 'gemini-2.0-flash',
|
| 61 |
name: 'Gemini 2.0 Flash',
|
| 62 |
-
description: '
|
| 63 |
modelPath: 'openai/google/gemini-2.0-flash-001',
|
| 64 |
avatarUrl: 'https://huggingface.co/api/avatars/google',
|
| 65 |
},
|
|
@@ -67,7 +75,7 @@ new_models = """ {
|
|
| 67 |
|
| 68 |
content = content[:idx_end] + new_models + content[idx_end:]
|
| 69 |
|
| 70 |
-
# Rename
|
| 71 |
content = content.replace("'Claude Opus 4'", "'Owl Alpha'")
|
| 72 |
content = content.replace('"Claude Opus 4"', '"Owl Alpha"')
|
| 73 |
content = content.replace("Claude Opus", "Owl Alpha")
|
|
@@ -76,9 +84,9 @@ with open(FILE, "w") as f:
|
|
| 76 |
f.write(content)
|
| 77 |
|
| 78 |
assert "owl-alpha" in content
|
| 79 |
-
assert "
|
|
|
|
| 80 |
assert "Qwen3-Coder-Next" in content
|
| 81 |
-
assert "
|
| 82 |
-
assert "
|
| 83 |
-
|
| 84 |
-
print("✅ Frontend patched: Owl Alpha default, DeepSeek via OpenRouter, Claude→Owl Alpha")
|
|
|
|
| 26 |
avatarUrl: 'https://huggingface.co/api/avatars/openrouter',
|
| 27 |
recommended: true,
|
| 28 |
},
|
| 29 |
+
{
|
| 30 |
+
id: 'nemotron-120b',
|
| 31 |
+
name: 'Nemotron 3 Super 120B',
|
| 32 |
+
description: 'OpenRouter · NVIDIA · free',
|
| 33 |
+
modelPath: 'openai/nvidia/nemotron-3-super-120b-a12b:free',
|
| 34 |
+
avatarUrl: 'https://huggingface.co/api/avatars/nvidia',
|
| 35 |
+
recommended: true,
|
| 36 |
+
},
|
| 37 |
{
|
| 38 |
id: 'deepseek-v4-pro',
|
| 39 |
name: 'DeepSeek V4 Pro',
|
| 40 |
description: 'OpenRouter · code quality · rẻ',
|
| 41 |
+
modelPath: 'openai/deepseek/deepseek-v4-pro',
|
| 42 |
avatarUrl: 'https://huggingface.co/api/avatars/deepseek-ai',
|
| 43 |
recommended: true,
|
| 44 |
},
|
|
|
|
| 51 |
recommended: true,
|
| 52 |
},
|
| 53 |
{
|
| 54 |
+
id: 'mimo-v2.5',
|
| 55 |
+
name: 'Mimo V2.5',
|
| 56 |
+
description: 'OpenRouter · Xiaomi',
|
| 57 |
+
modelPath: 'openai/xiaomi/mimo-v2.5',
|
| 58 |
+
avatarUrl: 'https://huggingface.co/api/avatars/xiaomi',
|
| 59 |
},
|
| 60 |
{
|
| 61 |
+
id: 'gemma-3-1b',
|
| 62 |
+
name: 'Gemma 3 1B',
|
| 63 |
+
description: 'HF Inference · nhẹ · nhanh',
|
| 64 |
+
modelPath: 'google/gemma-3-1b-it',
|
| 65 |
+
avatarUrl: 'https://huggingface.co/api/avatars/google',
|
| 66 |
},
|
| 67 |
{
|
| 68 |
id: 'gemini-2.0-flash',
|
| 69 |
name: 'Gemini 2.0 Flash',
|
| 70 |
+
description: 'OpenRouter · nhanh',
|
| 71 |
modelPath: 'openai/google/gemini-2.0-flash-001',
|
| 72 |
avatarUrl: 'https://huggingface.co/api/avatars/google',
|
| 73 |
},
|
|
|
|
| 75 |
|
| 76 |
content = content[:idx_end] + new_models + content[idx_end:]
|
| 77 |
|
| 78 |
+
# Rename Claude → Owl Alpha in UI
|
| 79 |
content = content.replace("'Claude Opus 4'", "'Owl Alpha'")
|
| 80 |
content = content.replace('"Claude Opus 4"', '"Owl Alpha"')
|
| 81 |
content = content.replace("Claude Opus", "Owl Alpha")
|
|
|
|
| 84 |
f.write(content)
|
| 85 |
|
| 86 |
assert "owl-alpha" in content
|
| 87 |
+
assert "nemotron-3-super-120b" in content
|
| 88 |
+
assert "deepseek-v4-pro" in content
|
| 89 |
assert "Qwen3-Coder-Next" in content
|
| 90 |
+
assert "mimo-v2.5" in content
|
| 91 |
+
assert "gemma-3-1b-it" in content
|
| 92 |
+
print("✅ Frontend patched")
|
|
|