fix: init model from env
This commit is contained in:
parent
e67b5c35d9
commit
c995168294
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue