bep40 commited on
Commit
f259730
·
verified ·
1 Parent(s): 4aca91c

Fix frontend model path to openrouter/openrouter/owl-alpha

Browse files
Files changed (1) hide show
  1. 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: 'Rẻ nhất · code quality cực tốt · HF Inference',
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ẻ · $0.15/$0.60 · nhanh',
63
- modelPath: 'openai/google/gemini-2.0-flash-001',
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: Owl Alpha, DeepSeek V4 Pro, Qwen3 Coder Next, MiniMax M2.7, GLM 5.1, Gemini Flash")
 
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")