(id string, name string, logo string, accessConfiguration string, modelParameters string)
| 72 | } |
| 73 | |
| 74 | func NewCustomizeModel(id string, name string, logo string, accessConfiguration string, modelParameters string) (IModel, error) { |
| 75 | if logo == "" { |
| 76 | logo = GetCustomizeLogo() |
| 77 | } |
| 78 | // handle access_config & model_config |
| 79 | return &Model{ |
| 80 | id: id, |
| 81 | name: name, |
| 82 | logo: logo, |
| 83 | modelType: ModelTypeLLM, |
| 84 | source: "customize", |
| 85 | accessConfiguration: accessConfiguration, |
| 86 | modelParameters: modelParameters, |
| 87 | IConfig: NewConfig(modelParameters, nil), |
| 88 | }, nil |
| 89 | } |
| 90 | |
| 91 | func NewModel(data string, logo string) (IModel, error) { |
| 92 | var cfg entity.AIModel |
nothing calls this directly
no test coverage detected