We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dfa338 commit a91e3e2Copy full SHA for a91e3e2
1 file changed
src/memos/api/middleware/request_context.py
@@ -18,16 +18,16 @@
18
19
async def _tee_stream(
20
original: StreamingResponse,
21
-) -> str:
+) -> StreamingResponse:
22
chunks = []
23
24
async for chunk in original.body_iterator:
25
chunks.append(chunk)
26
yield chunk
27
28
- body_str = "".join(chunks)
+ body_str = "".join(chunks).decode("utf-8", errors="replace")
29
30
- return body_str
+ logger.info(f"Response content: {body_str}")
31
32
33
logger = memos.log.get_logger(__name__)
0 commit comments