6363 "mplug_owl_video" : "mplug_Owl" ,
6464 "ola" : "Ola" ,
6565 "omnivinci" : "OmniVinci" ,
66- "openai_compatible " : "OpenAICompatible" ,
66+ "openai " : "OpenAICompatible" ,
6767 "oryx" : "Oryx" ,
6868 "phi3v" : "Phi3v" ,
6969 "phi4_multimodal" : "Phi4" ,
107107 "qwen3_vl" : "Qwen3_VL" ,
108108 "qwen2_5_vl" : "Qwen2_5_VL" ,
109109 "thyme" : "Thyme" ,
110- "openai_compatible " : "OpenAICompatible" ,
110+ "openai " : "OpenAICompatible" ,
111111 "vllm" : "VLLM" ,
112112 "vllm_generate" : "VLLMGenerate" ,
113113 "sglang" : "Sglang" ,
117117 "llava_onevision1_5" : "Llava_OneVision1_5" ,
118118}
119119
120+ MODEL_ALIASES : dict [str , tuple [str , ...]] = {
121+ "openai" : ("openai_compatible" , "openai_compatible_chat" ),
122+ "async_openai" : ("async_openai_compatible_chat" ,),
123+ }
124+
120125
121126def _build_class_path (
122127 model_name : str ,
@@ -136,11 +141,13 @@ def _build_builtin_manifests() -> list[ModelManifest]:
136141 for model_id in model_ids :
137142 simple_class = AVAILABLE_SIMPLE_MODELS .get (model_id )
138143 chat_class = AVAILABLE_CHAT_TEMPLATE_MODELS .get (model_id )
144+ aliases = MODEL_ALIASES .get (model_id , ())
139145 manifests .append (
140146 ModelManifest (
141147 model_id = model_id ,
142148 simple_class_path = (_build_class_path (model_id , "simple" , simple_class ) if simple_class else None ),
143149 chat_class_path = (_build_class_path (model_id , "chat" , chat_class ) if chat_class else None ),
150+ aliases = aliases ,
144151 ),
145152 )
146153 return manifests
0 commit comments