Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
5d71bda4
"tests/python/common/test_heterograph.py" did not exist on "7b97298150784fd079d9a28226f54bde049bd425"
Unverified
Commit
5d71bda4
authored
Sep 22, 2023
by
Bruce MacDonald
Committed by
GitHub
Sep 22, 2023
Browse files
close llm on interrupt (#577)
parent
9df31c35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
server/routes.go
server/routes.go
+3
-0
No files found.
server/routes.go
View file @
5d71bda4
...
...
@@ -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
)
}()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment