bep40 commited on
Commit
7155db3
·
verified ·
1 Parent(s): 1ba0abe

Upload patch_frontend.py

Browse files
Files changed (1) hide show
  1. patch_frontend.py +16 -1
patch_frontend.py CHANGED
@@ -43,6 +43,14 @@ if "LAGUNA_S21_MODEL_PATH" not in model_content:
43
  )
44
  print("OK: Added LAGUNA_S21_MODEL_PATH")
45
 
 
 
 
 
 
 
 
 
46
  with open(MODEL_FILE, "w") as f:
47
  f.write(model_content)
48
  print("OK: model.ts constants updated")
@@ -126,6 +134,13 @@ NEW_MODELS = """const DEFAULT_MODEL_OPTIONS: ModelOption[] = [
126
  avatarUrl: 'https://huggingface.co/api/avatars/poolside',
127
  recommended: true,
128
  },
 
 
 
 
 
 
 
129
  {
130
  id: 'nex-n2-mini',
131
  name: 'nex-agi/nex-n2-mini',
@@ -181,4 +196,4 @@ with open(FILE, "w", encoding="utf-8") as f:
181
  f.write(content)
182
 
183
  print("OK: Frontend patched - Tencent HY3:free DEFAULT")
184
- print(" Models: HY3:free, Gemma 4 31B:free, Llama 3.3 70B:free, Laguna M.1:free, Laguna S 2.1:free, Nex N2 Mini, Ling 3.0 Flash:free, Llama 3.1 8B, DeepSeek V4 Flash latest")
 
43
  )
44
  print("OK: Added LAGUNA_S21_MODEL_PATH")
45
 
46
+ # === PATCH: Add Space Bunny Alpha model path ===
47
+ if "SPACE_BUNNY_ALPHA_MODEL_PATH" not in model_content:
48
+ model_content = model_content.replace(
49
+ "export const LAGUNA_S21_MODEL_PATH",
50
+ "export const SPACE_BUNNY_ALPHA_MODEL_PATH = 'openai/stealth/space-bunny-alpha';\n\nexport const LAGUNA_S21_MODEL_PATH"
51
+ )
52
+ print("OK: Added SPACE_BUNNY_ALPHA_MODEL_PATH")
53
+
54
  with open(MODEL_FILE, "w") as f:
55
  f.write(model_content)
56
  print("OK: model.ts constants updated")
 
134
  avatarUrl: 'https://huggingface.co/api/avatars/poolside',
135
  recommended: true,
136
  },
137
+ {
138
+ id: 'space-bunny-alpha',
139
+ name: 'stealth/space-bunny-alpha',
140
+ modelPath: 'openai/stealth/space-bunny-alpha',
141
+ avatarUrl: 'https://huggingface.co/api/avatars/stealth',
142
+ recommended: true,
143
+ },
144
  {
145
  id: 'nex-n2-mini',
146
  name: 'nex-agi/nex-n2-mini',
 
196
  f.write(content)
197
 
198
  print("OK: Frontend patched - Tencent HY3:free DEFAULT")
199
+ print(" Models: HY3:free, Gemma 4 31B:free, Llama 3.3 70B:free, Laguna M.1:free, Laguna S 2.1:free, stealth/space-bunny-alpha, Nex N2 Mini, Ling 3.0 Flash:free, Llama 3.1 8B, DeepSeek V4 Flash latest")