🎨 优化日志输出

This commit is contained in:
2026-03-04 17:57:44 +08:00
parent a0d98b4761
commit ce6bc8a37b
3 changed files with 206 additions and 67 deletions

View File

@@ -7,7 +7,7 @@ type ChatCompletionResponse struct {
Created int64 `json:"created"`
Model string `json:"model"`
Choices []ChatCompletionChoice `json:"choices"`
Usage ChatCompletionUsage `json:"usage"`
Usage *ChatCompletionUsage `json:"usage,omitempty"`
// 统一格式的用量统计(用于各种上游的标准化)
StandardUsage *ChatCompletionUsage `json:"standard_usage,omitempty"`
// 扩展字段:正则脚本执行日志