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
@@ -62,7 +62,7 @@ func ClaudeErrorWrapper(err error, code string, statusCode int) *dto.ClaudeError
text = "请求上游地址失败"
}
}
claudeError := dto.ClaudeError{
claudeError := types.ClaudeError{
Message: text,
Type: "new_api_error",
}