feat: support deepseek claude format (convert)

This commit is contained in:
CaIon
2025-08-07 19:01:49 +08:00
parent 0ea0a432bf
commit 18c630e5e4
3 changed files with 9 additions and 6 deletions

View File

@@ -361,7 +361,7 @@ type ClaudeUsage struct {
CacheCreationInputTokens int `json:"cache_creation_input_tokens"`
CacheReadInputTokens int `json:"cache_read_input_tokens"`
OutputTokens int `json:"output_tokens"`
ServerToolUse *ClaudeServerToolUse `json:"server_tool_use"`
ServerToolUse *ClaudeServerToolUse `json:"server_tool_use,omitempty"`
}
type ClaudeServerToolUse struct {