fix: init model from env
This commit is contained in:
@@ -97,7 +97,10 @@ 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)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user