Skip to content

Conversation

@Husainbw786
Copy link
Collaborator

No description provided.

- Added transform_error_response function to standardize error handling across services
- Implemented specialized handling for Anthropic API's response_type parameter errors
- Updated chat and image endpoints to use new error transformation logic
- Added debug logging to track error transformation process
- Fixed potential KeyError by using .get() for is_playground checks in error handlers
- Removed unnecessary debug print statements from transform_error_response function
- Simplified error transformation logic while maintaining core functionality
- Kept existing error handling behavior for Anthropic API and response_type errors
- Reduced handle_anthropic_response_type_error function to return simple error message instead of complex JSON schema
- Removed unused fields and nested response structure for better maintainability
- Updated error message format in transform_error_response for consistency
- Removed redundant parsed_data parameter handling since it's no longer needed
@harshhsahu
Copy link
Collaborator

  1. suppport@gtwy.ai move to function
  2. anthropic handler remove

- Consolidated error transformation logic into single transform_error_response function
- Removed redundant handle_anthropic_response_type_error helper function
- Moved support contact info into error transformation function for consistent messaging
- Simplified error handling flow in chat function by removing parsed_data parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants