refactor: update error handling to support dynamic error types

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

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