llm_windows.go 593 B

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