Both backends now emit the real application/vnd.amazon.eventstream framing
Bedrock SDK clients expect: a messageStart/contentBlockDelta/contentBlockStop/
messageStop/metadata event sequence, framed with the same AwsEventStreamEncoder
helper already used by S3 Select and Kinesis SubscribeToShard.
The proxy backend posts to /chat/completions with stream:true (matching
Converse) and translates the OpenAI SSE response into Bedrock stream events,
including basic tool-call accumulation. A response - streaming or not - that
never produces real completion content surfaces as a ModelErrorException
instead of a fabricated empty success:
- ConverseStream: no usable SSE chunks, chunks that only carry role/usage/
finish_reason with no text or tool_calls, a stream that ends without a
finish_reason or "[DONE]" (truncated mid-generation), or a tool_calls
fragment missing its id/name or with arguments that never form valid JSON.
- Converse: a 2xx response with no choices at all.