mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-21 07:01:04 +08:00
Go: add stats (#17061)
### Summary Add LLM token stats framework --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -530,11 +530,11 @@ func (r *MessageResponse) PrintOut() {
|
||||
}
|
||||
|
||||
type NonStreamResponse struct {
|
||||
Code int `json:"code"`
|
||||
ReasoningContent string `json:"reasoning_content"`
|
||||
Answer string `json:"answer"`
|
||||
Message string `json:"message"`
|
||||
Usage *models.ChatUsage `json:"usage"`
|
||||
Code int `json:"code"`
|
||||
ReasoningContent string `json:"reasoning_content"`
|
||||
Answer string `json:"answer"`
|
||||
Message string `json:"message"`
|
||||
Usage *models.TokenUsage `json:"usage"`
|
||||
Duration float64
|
||||
OutputFormat OutputFormat
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user