The community member has a FastAPI endpoint that streams response data, but they are receiving the data in a format they don't want (data: data=' R' source='internal'). The community members suggest converting the pydantic objects to dicts or JSON strings before returning the response. One community member provides a specific solution using async def gen(): async for ev in handler.stream_events(): yield ev.model_dump() return EventSourceResponse(gen()). However, there is no explicitly marked answer in the comments.