Skip to content

Commit 4ffcb2e

Browse files
committed
chore(refactor): imply modelpath
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent cdb70f5 commit 4ffcb2e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/config/backend_config_loader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (bcl *BackendConfigLoader) LoadBackendConfigFileByName(modelName, modelPath
140140
}
141141
}
142142

143-
cfg.SetDefaults(opts...)
143+
cfg.SetDefaults(append(opts, ModelPath(modelPath))...)
144144

145145
return cfg, nil
146146
}

core/http/endpoints/openai/request.go

-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ func mergeRequestWithConfig(modelFile string, input *schema.OpenAIRequest, cm *c
323323
config.LoadOptionThreads(threads),
324324
config.LoadOptionContextSize(ctx),
325325
config.LoadOptionF16(f16),
326-
config.ModelPath(loader.ModelPath),
327326
)
328327

329328
// Set the parameters for the language model prediction

0 commit comments

Comments
 (0)