MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / NewCustomizeModel

Function NewCustomizeModel

ai-provider/model-runtime/model.go:74–89  ·  view source on GitHub ↗
(id string, name string, logo string, accessConfiguration string, modelParameters string)

Source from the content-addressed store, hash-verified

72}
73
74func 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
91func NewModel(data string, logo string) (IModel, error) {
92 var cfg entity.AIModel

Callers

nothing calls this directly

Calls 2

GetCustomizeLogoFunction · 0.85
NewConfigFunction · 0.85

Tested by

no test coverage detected