feat: implement new handlers for relay processing - #1270
Conversation
…es processing - Added new handlers: AudioHelper, ImageHelper, EmbeddingHelper, and ResponsesHelper to manage respective requests. - Updated ModelMappedHelper to accept request parameters for better model mapping. - Enhanced error handling and validation across new handlers to ensure robust request processing. - Introduced support for new relay formats in relay_info and updated relevant functions accordingly.
WalkthroughThis change updates relay information handling and model mapping across several relay handler functions. It introduces specialized relay info generators for different formats, revises the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Handler
participant RelayInfoGen
participant ModelMappedHelper
Client->>Handler: Sends API request
Handler->>RelayInfoGen: Generate relay info (format-specific)
RelayInfoGen-->>Handler: Returns RelayInfo
Handler->>ModelMappedHelper: Map model name (pass context, RelayInfo, request)
ModelMappedHelper-->>Handler: Updates request.Model as needed
Handler-->>Client: Processed response
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (13)
🔇 Additional comments (24)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…apping feat: implement new handlers for relay processing
feat: implement new handlers for relay processing
Summary by CodeRabbit
New Features
Refactor
Bug Fixes