update config of publishing provider

This commit is contained in:
Liujian
2025-03-11 15:27:01 +08:00
parent 4cfaf64de3
commit 084d2f6c09
+1 -1
View File
@@ -671,7 +671,7 @@ func (i *imlProviderModule) UpdateProviderConfig(ctx context.Context, id string,
}
cfg := make(map[string]interface{})
cfg["provider"] = info.Id
cfg["model"] = info.DefaultLLM
cfg["model"] = model.Name()
cfg["model_config"] = model.DefaultConfig()
cfg["base"] = fmt.Sprintf("%s://%s", p.URI().Scheme(), p.URI().Host())
return i.syncGateway(ctx, cluster.DefaultClusterID, []*gateway.DynamicRelease{