refactor: update error handling to support dynamic error types

This commit is contained in:
CaIon committed 2025-07-31 21:16:01 +08:00
1 parent 6d2e92fb7b
commit 563d056ff7
9 files changed
+117 -46

No files matched your search

+1 -1
View File
@@ -16,8 +16,8 @@ type OpenAIError struct {
}
type ClaudeError struct {
Message string `json:"message,omitempty"`
Type string `json:"type,omitempty"`
Message string `json:"message,omitempty"`
}
type ErrorType string