MCPcopy Create free account
hub / github.com/ZyphrZero/z.ai2api_python / get_supported_models

Method get_supported_models

app/core/upstream.py:599–612  ·  view source on GitHub ↗

获取支持的模型列表

(self)

Source from the content-addressed store, hash-verified

597 )
598
599 def get_supported_models(self) -> List[str]:
600 """获取支持的模型列表"""
601 return [
602 settings.GLM45_MODEL,
603 settings.GLM45_THINKING_MODEL,
604 settings.GLM45_SEARCH_MODEL,
605 settings.GLM45_AIR_MODEL,
606 settings.GLM46V_MODEL,
607 settings.GLM5_MODEL,
608 settings.GLM47_MODEL,
609 settings.GLM47_THINKING_MODEL,
610 settings.GLM47_SEARCH_MODEL,
611 settings.GLM47_ADVANCED_SEARCH_MODEL,
612 ]
613
614 def _requires_persisted_chat(self, upstream_model_id: str) -> bool:
615 """需要挂载真实 chat 会话的上游模型。"""

Callers 2

warmup_upstream_clientFunction · 0.95
list_modelsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected