mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
- Added LLMResponseUsage struct to encapsulate token usage details for language model responses. - Updated ChatMessageContent and ChatMessage models to include a Usage field of type *entity.LLMResponseUsage, enhancing message handling capabilities. - Improved structure and clarity of models by ensuring consistent field definitions and descriptions.
8 lines
170 B
Go
8 lines
170 B
Go
package entity
|
|
|
|
type LLMResponseUsage struct {
|
|
InputTokens int `json:"input_tokens"`
|
|
OutputTokens int `json:"output_tokens"`
|
|
TotalTokens int `json:"total_tokens"`
|
|
}
|