mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
fix bug
This commit is contained in:
@@ -614,7 +614,8 @@ func (i *imlLocalModel) getLocalModels(ctx context.Context, v string) ([]*gatewa
|
||||
var has bool
|
||||
v, has = i.settingService.Get(ctx, "system.ai_model.ollama_address")
|
||||
if !has {
|
||||
return nil, errors.New("ollama_address not set")
|
||||
//return nil, errors.New("ollama_address not set")
|
||||
return nil, nil
|
||||
}
|
||||
}
|
||||
provider := ai_provider_local.ProviderLocal
|
||||
|
||||
Reference in New Issue
Block a user