Pass the Selected Text from Editor to prompt to generate response #4497
Unanswered
manojrampur-tiger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Currently, I'm using this code to select the text in the Editor and updating the value to context API:
Integrating the custom stream API which provides Stream Response, I need to pass this useSession Value in the prompt so that it can be passed in prompt and generate data.
Either Here:
Or here:
If this is not the right approach tell me how to pass that data to the prompt
Reproduction URL
No response
Reproduction steps
Plate version
44.0.1
Slate React version
0.102.0
Screenshots
Logs
Browsers
No response
Beta Was this translation helpful? Give feedback.
All reactions