Skip to content

Commit

Permalink
chore(refactor): imply modelpath (#4208)
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler authored Nov 20, 2024
1 parent 51e0db3 commit 4f1ab23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion core/config/backend_config_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (bcl *BackendConfigLoader) LoadBackendConfigFileByName(modelName, modelPath
}
}

cfg.SetDefaults(opts...)
cfg.SetDefaults(append(opts, ModelPath(modelPath))...)

return cfg, nil
}
Expand Down
1 change: 0 additions & 1 deletion core/http/endpoints/openai/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ func mergeRequestWithConfig(modelFile string, input *schema.OpenAIRequest, cm *c
config.LoadOptionThreads(threads),
config.LoadOptionContextSize(ctx),
config.LoadOptionF16(f16),
config.ModelPath(loader.ModelPath),
)

// Set the parameters for the language model prediction
Expand Down

0 comments on commit 4f1ab23

Please sign in to comment.