Closed leehuwuj closed 4 months ago
Latest commit: f33f6d786b65b23ebc6a81688af8bf657e48b79a
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The update enhances the convert_text
method in the VercelStreamResponse
class by adding an additional escape mechanism for double quotes, along with existing newline escapes. This improvement ensures that text streams are not disrupted by these characters, maintaining the integrity of the data flow.
File Path | Change Summary |
---|---|
.../vercel_response.py |
Enhanced convert_text to escape double quotes in addition to newlines. |
🐇💻🌟 A little rabbit hopped along the code,
Tweaking strings where they flowed and flowed.
"No break, no pause," it said with glee,
"Let streams run smooth, as smooth can be!"
With a hop and a skip, the data flew right,
Thanks to the rabbit's code so tight. 🌟💾
Summary by CodeRabbit
convert_text
method in theVercelStreamResponse
class to escape newlines and double quotes, preventing stream breakage.