This commit is contained in:
frob 2026-04-22 23:26:43 -05:00 committed by GitHub
commit 0368d79cd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}