llm_windows.go 540 B

12345678910111213141516
  1. package llm
  2. import (
  3. "syscall"
  4. )
  5. const CREATE_DEFAULT_ERROR_MODE = 0x04000000
  6. var LlamaServerSysProcAttr = &syscall.SysProcAttr{
  7. // Wire up the default error handling logic If for some reason a DLL is
  8. // missing in the path this will pop up a GUI Dialog explaining the fault so
  9. // the user can either fix their PATH, or report a bug. Without this
  10. // setting, the process exits immediately with a generic exit status but no
  11. // way to (easily) figure out what the actual missing DLL was.
  12. CreationFlags: CREATE_DEFAULT_ERROR_MODE,
  13. }