Can anyone help me figure out how to format my Vertex AI response that displays in a rich text editor that is NOT expecting JSON?
Below is my API call body:
{
"instances": [
{
"content": "input: <prompt>\n\noutput:"
}
],
"parameters": {
"candidateCount": 1,
"maxOutputTokens": 256,
"temperature": 0.2,
"topP": 0.8,
"topK": 40
}
}
Use the result of the API call as part of the dynamic expression and reference the value from the call result you want to add to the rich text editor…the dynamic expression will be the rich text editor initial content.
Thanks for the reply.
This seems like its more for formatting the response in the rich text editor?
To clarify, what I’m after is formatting the API call body so vertex AI knows how to structure/format its response (bolded words/titles, line breaks etc).
Sorry, I read this to mean you want to take the response from Vertex AI and display it in a rich text editor
You need to look at the Vertex AI API documentation to see how to do that
1 Like