refactor: Enhance Claude response handling

This commit is contained in:
1808837298@qq.com committed 2025-03-16 19:11:58 +08:00
1 parent 62dc82638d
commit 6e8916207e
4 files changed
+74 -64

No files matched your search

+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"`
}