llm_windows.go 593 Bytes
Newer Older
mashun1's avatar
v1  
mashun1 committed
1
2
package llm

xuxzh1's avatar
init  
xuxzh1 committed
3
4
5
6
import (
	"embed"
	"syscall"
)
mashun1's avatar
v1  
mashun1 committed
7
8
9

// unused on windows
var libEmbed embed.FS
xuxzh1's avatar
init  
xuxzh1 committed
10
11
12
13
14
15
16
17
18
19
20

const CREATE_DEFAULT_ERROR_MODE = 0x04000000

var LlamaServerSysProcAttr = &syscall.SysProcAttr{
	// Wire up the default error handling logic If for some reason a DLL is
	// missing in the path this will pop up a GUI Dialog explaining the fault so
	// the user can either fix their PATH, or report a bug. Without this
	// setting, the process exits immediately with a generic exit status but no
	// way to (easily) figure out what the actual missing DLL was.
	CreationFlags: CREATE_DEFAULT_ERROR_MODE,
}