diff --git a/backend/application/base/appinfra/modelmgr.go b/backend/application/base/appinfra/modelmgr.go index f32cad60..00853ba3 100644 --- a/backend/application/base/appinfra/modelmgr.go +++ b/backend/application/base/appinfra/modelmgr.go @@ -97,7 +97,10 @@ func initModelByEnv(wd, templatePath string) (modelEntities []*modelmgr.Model, e if !foundTemplate { modelEntity.Name = info.modelName } - + modelEntity.Meta.ConnConfig.Model = info.modelID + modelEntity.Meta.ConnConfig.APIKey = info.apiKey + modelEntity.Meta.ConnConfig.BaseURL = info.baseURL + modelEntities = append(modelEntities, modelEntity) default: