Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not print [object Object] when enhancing prompt #132

Open
wants to merge 43 commits into
base: main
Choose a base branch
from

Conversation

yoelcabo
Copy link
Contributor

@yoelcabo yoelcabo commented Oct 7, 2024

I noticed this bug where it prints [object Object] when you enhance the prompt. I guess there is some metadata to signal the end of the stream or something like that.

It also happens in bolt.new:
image

The fix is just filtering the response to make sure it's text-only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants