mirror of
https://github.com/ollama/ollama
synced 2026-04-23 08:45:14 +00:00
Merge 6b6746b5b4 into 160660e572
This commit is contained in:
commit
0368d79cd1
|
|
@ -423,6 +423,10 @@ func (s *Server) GenerateHandler(c *gin.Context) {
|
|||
CreatedAt: time.Now().UTC(),
|
||||
Done: true,
|
||||
DoneReason: "load",
|
||||
Metrics: api.Metrics{
|
||||
LoadDuration: checkpointLoaded.Sub(checkpointStart),
|
||||
TotalDuration: checkpointLoaded.Sub(checkpointStart),
|
||||
},
|
||||
})
|
||||
return
|
||||
}
|
||||
|
|
@ -2310,6 +2314,10 @@ func (s *Server) ChatHandler(c *gin.Context) {
|
|||
Message: api.Message{Role: "assistant"},
|
||||
Done: true,
|
||||
DoneReason: "load",
|
||||
Metrics: api.Metrics{
|
||||
LoadDuration: checkpointLoaded.Sub(checkpointStart),
|
||||
TotalDuration: checkpointLoaded.Sub(checkpointStart),
|
||||
},
|
||||
})
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue