处理模型兼容的一些细节
This commit is contained in:
@@ -242,6 +242,13 @@ for model in AVAIL_LLM_MODELS:
|
||||
mi.update({"endpoint": api2d_endpoint})
|
||||
model_info.update({model: mi})
|
||||
|
||||
# -=-=-=-=-=-=- azure 对齐支持 -=-=-=-=-=-=-
|
||||
for model in AVAIL_LLM_MODELS:
|
||||
if model.startswith('azure-') and (model.replace('azure-','') in model_info.keys()):
|
||||
mi = model_info[model.replace('azure-','')]
|
||||
mi.update({"endpoint": azure_endpoint})
|
||||
model_info.update({model: mi})
|
||||
|
||||
# -=-=-=-=-=-=- 以下部分是新加入的模型,可能附带额外依赖 -=-=-=-=-=-=-
|
||||
if "claude-1-100k" in AVAIL_LLM_MODELS or "claude-2" in AVAIL_LLM_MODELS:
|
||||
from .bridge_claude import predict_no_ui_long_connection as claude_noui
|
||||
|
||||
Reference in New Issue
Block a user