mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-12 18:11:34 +08:00
fix: resolve error caused by fetching empty vendor config model
This commit is contained in:
+1
-2
@@ -474,10 +474,9 @@ func (i *imlProviderModule) Provider(ctx context.Context, id string) (*ai_dto.Pr
|
||||
defaultLLM, has := p.GetModel(info.DefaultLLM)
|
||||
if !has {
|
||||
model, has := p.DefaultModel(model_runtime.ModelTypeLLM)
|
||||
if !has {
|
||||
if !has || model == nil {
|
||||
defaultLLM, _ = model_runtime.NewCustomizeModel("", "", "", "", "")
|
||||
}
|
||||
defaultLLM = model
|
||||
}
|
||||
|
||||
return &ai_dto.Provider{
|
||||
|
||||
Reference in New Issue
Block a user