ext_server.go 559 Bytes
Newer Older
1
2
//go:build !darwin

3
4
5
package llm

import (
6
7
	"fmt"

8
9
10
	"github.com/jmorganca/ollama/api"
)

Jeffrey Morgan's avatar
Jeffrey Morgan committed
11
func newDefaultExtServer(model string, adapters, projectors []string, opts api.Options) (extServer, error) {
12
	// On windows and linux we always load the llama.cpp libraries dynamically to avoid startup DLL dependencies
13
14
	// This ensures we can update the PATH at runtime to get everything loaded

15
	// This should never happen as we'll always try to load one or more cpu dynamic libaries before hitting default
16
	return nil, fmt.Errorf("no available default llm library")
17
}