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

[HELP] Replace Text using LLM APIs #452

Open
StroeAndreX opened this issue Jan 23, 2025 · 1 comment
Open

[HELP] Replace Text using LLM APIs #452

StroeAndreX opened this issue Jan 23, 2025 · 1 comment
Assignees
Labels
question Further information is requested waiting for user feedback

Comments

@StroeAndreX
Copy link

Hello everyone, I'm trying to integrate an LLM-generated response into my project, but I'm stuck on a issue.

I want to select a chunk of text and send it off to an LLM, and it comes back in Markdown form. The trouble starts when I decode that Markdown with ParchmentMarkdownCodec().decode because I have no idea how to actually replace the selected text in the editor with all the styling intact. If it were just a simple string, I'd have no problem.

Im not finding enough details in the documentation to handle the Markdown output properly.
How to make the editor’s controller update with the newly styled content?

Thanks

@amantoux
Copy link
Member

Hello @StroeAndreX
I'm not sure where you are stuck exactly, could you post a code sample that mimics what you are trying to achieve?

@amantoux amantoux added the question Further information is requested label Jan 24, 2025
@amantoux amantoux self-assigned this Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested waiting for user feedback
Projects
None yet
Development

No branches or pull requests

2 participants