feat: Introduce JSON decoding utility functions and update error handling in Claude and OpenAI response structures

This commit is contained in:
1808837298@qq.com
2025-03-16 18:34:39 +08:00
parent 2bfd471ff0
commit 62dc82638d
6 changed files with 39 additions and 14 deletions

View File

@@ -60,7 +60,6 @@ func ClaudeErrorWrapper(err error, code string, statusCode int) *dto.ClaudeError
claudeError := dto.ClaudeError{
Message: text,
Type: "new_api_error",
//Code: code,
}
return &dto.ClaudeErrorWithStatusCode{
Error: claudeError,