Created
July 5, 2024 06:04
-
-
Save elijahbenizzy/5303621273a01d208058be3ccad0e181 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const response = await fetch( | |
`/api/v0/streaming_chatbot/response/${props.projectId}/${props.appId}`, | |
{ | |
method: 'POST', | |
headers: { 'Content-Type': 'application/json' }, | |
body: JSON.stringify({ prompt: currentPrompt }) | |
} | |
); | |
const reader = response.body?.getReader(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment