mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-13 06:27:07 +00:00
server: reset digest at end of generate
This commit is contained in:
parent
cc509a994e
commit
03cff3a225
@ -57,6 +57,7 @@ func GenerateHandler(c *gin.Context) {
|
|||||||
if loaded.llm != nil {
|
if loaded.llm != nil {
|
||||||
loaded.llm.Close()
|
loaded.llm.Close()
|
||||||
loaded.llm = nil
|
loaded.llm = nil
|
||||||
|
loaded.digest = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
opts := api.DefaultOptions()
|
opts := api.DefaultOptions()
|
||||||
@ -98,6 +99,7 @@ func GenerateHandler(c *gin.Context) {
|
|||||||
|
|
||||||
loaded.llm.Close()
|
loaded.llm.Close()
|
||||||
loaded.llm = nil
|
loaded.llm = nil
|
||||||
|
loaded.digest = ""
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
loaded.expireTimer.Reset(sessionDuration)
|
loaded.expireTimer.Reset(sessionDuration)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user