MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / get_base_model_from_feature_model

Function get_base_model_from_feature_model

src/utils.py:80–86  ·  view source on GitHub ↗

Get base model name from feature model name.

(model_name: str)

Source from the content-addressed store, hash-verified

78
79
80def get_base_model_from_feature_model(model_name: str) -> str:
81 """Get base model name from feature model name."""
82 # Remove feature prefixes
83 for prefix in ["假流式/", "流式抗截断/"]:
84 if model_name.startswith(prefix):
85 return model_name[len(prefix) :]
86 return model_name
87
88
89def get_available_models(router_type: str = "openai") -> List[str]:

Callers 9

generate_contentFunction · 0.90
stream_generate_contentFunction · 0.90
chat_completionsFunction · 0.90
messagesFunction · 0.90
chat_completionsFunction · 0.90
generate_contentFunction · 0.90
stream_generate_contentFunction · 0.90
chat_completionsFunction · 0.90
messagesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected