Fix: Translate Google and Anthropic responses to OpenAI format
- Google: Parse formatted responses with JSON structure (e.g., 'assistant: [{'type': 'text', 'text': '...'}]')
- Anthropic: Extract text from content blocks and map stop_reason to finish_reason
- Both handlers now return properly formatted OpenAI-compatible responses
- Ensures clients receive correctly structured messages without malformed content
Showing
Please
register
or
sign in
to comment