2024-03-14 17:24:13 +00:00
|
|
|
package llm
|
|
|
|
|
2024-07-15 16:25:56 +00:00
|
|
|
import (
|
|
|
|
"embed"
|
|
|
|
"syscall"
|
|
|
|
)
|
2024-03-14 17:24:13 +00:00
|
|
|
|
2024-04-23 19:19:17 +00:00
|
|
|
// unused on windows
|
2024-03-14 17:24:13 +00:00
|
|
|
var libEmbed embed.FS
|
2024-07-15 16:25:56 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
}
|