refactor: Enhance Claude response handling

This commit is contained in:
1808837298@qq.com
2025-03-16 19:11:58 +08:00
parent 62dc82638d
commit 6e8916207e
4 changed files with 74 additions and 64 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ type OpenAITextResponse struct {
Object string `json:"object"`
Created int64 `json:"created"`
Choices []OpenAITextResponseChoice `json:"choices"`
Error *OpenAIError `json:"error"`
Error *OpenAIError `json:"error,omitempty"`
Usage `json:"usage"`
}