MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / get_model_credential

Function get_model_credential

apps/models_provider/tools.py:73–81  ·  view source on GitHub ↗

获取模型认证实例 @param provider: 供应商字符串 @param model_type: 模型类型 @param model_name: 模型名称 @return: 认证实例对象

(provider, model_type, model_name)

Source from the content-addressed store, hash-verified

71
72
73def get_model_credential(provider, model_type, model_name):
74 """
75 获取模型认证实例
76 @param provider: 供应商字符串
77 @param model_type: 模型类型
78 @param model_name: 模型名称
79 @return: 认证实例对象
80 """
81 return get_provider(provider).get_model_credential(model_type, model_name)
82
83
84def get_model_type_list(provider):

Calls 2

get_providerFunction · 0.85
get_model_credentialMethod · 0.80

Tested by

no test coverage detected