Spaces:
Running
Running
Frontend: DeepSeek via OpenRouter + rename Claude to Owl Alpha
Browse files- patch_frontend.py +9 -4
patch_frontend.py
CHANGED
|
@@ -29,8 +29,8 @@ new_models = """ {
|
|
| 29 |
{
|
| 30 |
id: 'deepseek-v4-pro',
|
| 31 |
name: 'DeepSeek V4 Pro',
|
| 32 |
-
description: '
|
| 33 |
-
modelPath: 'deepseek
|
| 34 |
avatarUrl: 'https://huggingface.co/api/avatars/deepseek-ai',
|
| 35 |
recommended: true,
|
| 36 |
},
|
|
@@ -67,13 +67,18 @@ new_models = """ {
|
|
| 67 |
|
| 68 |
content = content[:idx_end] + new_models + content[idx_end:]
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
with open(FILE, "w") as f:
|
| 71 |
f.write(content)
|
| 72 |
|
| 73 |
assert "owl-alpha" in content
|
| 74 |
-
assert "
|
| 75 |
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")
|
|
|
|
| 29 |
{
|
| 30 |
id: 'deepseek-v4-pro',
|
| 31 |
name: 'DeepSeek V4 Pro',
|
| 32 |
+
description: 'OpenRouter · code quality · rẻ',
|
| 33 |
+
modelPath: 'openai/deepseek/deepseek-chat-v3-0324',
|
| 34 |
avatarUrl: 'https://huggingface.co/api/avatars/deepseek-ai',
|
| 35 |
recommended: true,
|
| 36 |
},
|
|
|
|
| 67 |
|
| 68 |
content = content[:idx_end] + new_models + content[idx_end:]
|
| 69 |
|
| 70 |
+
# Rename "Claude" references in the UI to "Owl Alpha"
|
| 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")
|
| 74 |
+
|
| 75 |
with open(FILE, "w") as f:
|
| 76 |
f.write(content)
|
| 77 |
|
| 78 |
assert "owl-alpha" in content
|
| 79 |
+
assert "deepseek-chat-v3-0324" in content
|
| 80 |
assert "Qwen3-Coder-Next" in content
|
| 81 |
assert "MiniMax-M2.7" in content
|
| 82 |
assert "GLM-5.1" in content
|
| 83 |
assert "gemini-2.0-flash" in content
|
| 84 |
+
print("✅ Frontend patched: Owl Alpha default, DeepSeek via OpenRouter, Claude→Owl Alpha")
|