fix: init model from env
This commit is contained in:
parent
e67b5c35d9
commit
c995168294
|
|
@ -97,6 +97,9 @@ func initModelByEnv(wd, templatePath string) (modelEntities []*modelmgr.Model, e
|
||||||
if !foundTemplate {
|
if !foundTemplate {
|
||||||
modelEntity.Name = info.modelName
|
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)
|
modelEntities = append(modelEntities, modelEntity)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue