Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
close llm on interrupt (#577)
Bruce MacDonald5d71bda4780e
diff --git a/server/routes.go b/server/routes.goindex 756efe309..045b1a268 100644--- a/server/routes.go+++ b/server/routes.go@@ -570,6 +570,9 @@ func Serve(ln net.Listener, allowOrigins []string) error {signal.Notify(signals, syscall.SIGINT, syscall.SIGTERM)go func() {<-signals+ if loaded.llm != nil {+ loaded.llm.Close()+ }os.RemoveAll(workDir)os.Exit(0)}()