Revert options as a ref in the server

This commit is contained in:
Daniel Hiltgen
2024-04-02 16:44:10 -07:00
parent 841adda157
commit 6589eb8a8c
2 changed files with 7 additions and 7 deletions

View File

@@ -33,14 +33,14 @@ type LlamaServer struct {
cmd *exec.Cmd
done chan error // Channel to signal when the process exits
status *StatusWriter
options *api.Options
options api.Options
}
var cpuOnlyFamilies = []string{
"mamba",
}
func NewLlamaServer(model string, adapters, projectors []string, opts *api.Options) (*LlamaServer, error) {
func NewLlamaServer(model string, adapters, projectors []string, opts api.Options) (*LlamaServer, error) {
if _, err := os.Stat(model); err != nil {
return nil, err
}