akhaliq HF Staff commited on
Commit
afb81bf
·
1 Parent(s): af35b33

update glm 4.7 to novita

Browse files
Files changed (2) hide show
  1. backend_api.py +1 -1
  2. backend_models.py +2 -2
backend_api.py CHANGED
@@ -98,7 +98,7 @@ def get_cached_client(model_id: str, provider: str = "auto"):
98
 
99
  # Define models and languages here to avoid importing Gradio UI
100
  AVAILABLE_MODELS = [
101
- {"name": "GLM-4.7", "id": "zai-org/GLM-4.7", "description": "GLM-4.7 - Latest GLM model via HuggingFace (Default)", "supports_images": False},
102
  {"name": "GLM-4.6", "id": "zai-org/GLM-4.6", "description": "GLM-4.6 model via HuggingFace with Cerebras provider", "supports_images": False},
103
  {"name": "GLM-4.6V 👁️", "id": "zai-org/GLM-4.6V:zai-org", "description": "GLM-4.6V vision model - supports image uploads for visual understanding", "supports_images": True},
104
  {"name": "DeepSeek V3", "id": "deepseek-ai/DeepSeek-V3", "description": "DeepSeek V3 - Fast model for code generation via HuggingFace Router with Novita provider", "supports_images": False},
 
98
 
99
  # Define models and languages here to avoid importing Gradio UI
100
  AVAILABLE_MODELS = [
101
+ {"name": "GLM-4.7", "id": "zai-org/GLM-4.7", "description": "GLM-4.7 - Latest GLM model via HuggingFace Router with Novita provider (Default)", "supports_images": False},
102
  {"name": "GLM-4.6", "id": "zai-org/GLM-4.6", "description": "GLM-4.6 model via HuggingFace with Cerebras provider", "supports_images": False},
103
  {"name": "GLM-4.6V 👁️", "id": "zai-org/GLM-4.6V:zai-org", "description": "GLM-4.6V vision model - supports image uploads for visual understanding", "supports_images": True},
104
  {"name": "DeepSeek V3", "id": "deepseek-ai/DeepSeek-V3", "description": "DeepSeek V3 - Fast model for code generation via HuggingFace Router with Novita provider", "supports_images": False},
backend_models.py CHANGED
@@ -96,8 +96,8 @@ def get_real_model_id(model_id: str) -> str:
96
  return "zai-org/GLM-4.5:fireworks-ai"
97
 
98
  elif model_id == "zai-org/GLM-4.7":
99
- # GLM-4.7 needs fastest provider suffix
100
- return "zai-org/GLM-4.7:fastest"
101
 
102
  return model_id
103
 
 
96
  return "zai-org/GLM-4.5:fireworks-ai"
97
 
98
  elif model_id == "zai-org/GLM-4.7":
99
+ # GLM-4.7 needs novita provider suffix
100
+ return "zai-org/GLM-4.7:novita"
101
 
102
  return model_id
103