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

Random text is getting render in the ai response #45

Open
JaveedActalyst opened this issue Oct 17, 2024 · 0 comments
Open

Random text is getting render in the ai response #45

JaveedActalyst opened this issue Oct 17, 2024 · 0 comments

Comments

@JaveedActalyst
Copy link

JaveedActalyst commented Oct 17, 2024

When i am generating the content using the custom prompt
a random text is getting appended to it (please refer to image for more clarification)

const handleGenerateContent = useCallback(() => { if (editor && prompt) { editor .chain() .focus() .aiTextPrompt({ text: prompt, stream: streamMode, format: 'rich-text', insertAt: editor.state.doc.content.size, }) .run(); setPrompt(''); // Reset the prompt after generating content } }, [editor, prompt, streamMode]);

the is the function for generating the content using custom prompt

image

In the demo example of provide context also you replicate the same issue

image

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

No branches or pull requests

1 participant