Upload patch_frontend.py

#6
by bep40 - opened
Files changed (1) hide show
  1. patch_frontend.py +3 -3
patch_frontend.py CHANGED
@@ -20,7 +20,7 @@ model_content = model_content.replace(
20
  )
21
  model_content = model_content.replace(
22
  "export const GLM_52_MODEL_PATH = 'zai-org/GLM-5.2:novita';",
23
- "export const GLM_52_MODEL_PATH = 'openai/deepseek/deepseek-v4-flash';"
24
  )
25
  model_content = model_content.replace(
26
  "export const DEEPSEEK_V4_PRO_MODEL_PATH = 'deepseek-ai/DeepSeek-V4-Pro:novita';",
@@ -31,7 +31,7 @@ model_content = model_content.replace(
31
  if "DEEPSEEK_V4_FLASH_LATEST_MODEL_PATH" not in model_content:
32
  model_content = model_content.replace(
33
  "export const LAGUNA_S21_MODEL_PATH",
34
- "export const DEEPSEEK_V4_FLASH_LATEST_MODEL_PATH = 'openai/deepseek/deepseek-v4-flash-latest';\n\nexport const LAGUNA_S21_MODEL_PATH"
35
  )
36
  print("OK: Added DEEPSEEK_V4_FLASH_LATEST_MODEL_PATH")
37
 
@@ -161,7 +161,7 @@ NEW_MODELS = """const DEFAULT_MODEL_OPTIONS: ModelOption[] = [
161
  {
162
  id: 'deepseek-v4-flash-latest',
163
  name: 'DeepSeek V4 Flash latest',
164
- modelPath: 'openai/deepseek/deepseek-v4-flash-latest',
165
  avatarUrl: 'https://huggingface.co/api/avatars/deepseek',
166
  recommended: true,
167
  },
 
20
  )
21
  model_content = model_content.replace(
22
  "export const GLM_52_MODEL_PATH = 'zai-org/GLM-5.2:novita';",
23
+ "export const GLM_52_MODEL_PATH = 'deepseek/deepseek-v4-flash';"
24
  )
25
  model_content = model_content.replace(
26
  "export const DEEPSEEK_V4_PRO_MODEL_PATH = 'deepseek-ai/DeepSeek-V4-Pro:novita';",
 
31
  if "DEEPSEEK_V4_FLASH_LATEST_MODEL_PATH" not in model_content:
32
  model_content = model_content.replace(
33
  "export const LAGUNA_S21_MODEL_PATH",
34
+ "export const DEEPSEEK_V4_FLASH_LATEST_MODEL_PATH = 'deepseek/deepseek-v4-flash-latest';\n\nexport const LAGUNA_S21_MODEL_PATH"
35
  )
36
  print("OK: Added DEEPSEEK_V4_FLASH_LATEST_MODEL_PATH")
37
 
 
161
  {
162
  id: 'deepseek-v4-flash-latest',
163
  name: 'DeepSeek V4 Flash latest',
164
+ modelPath: 'deepseek/deepseek-v4-flash-latest',
165
  avatarUrl: 'https://huggingface.co/api/avatars/deepseek',
166
  recommended: true,
167
  },