Hi, I have a setup:
and
but for some reason, I get this form of response:
in the embedded chat on my website.
How to fix this?
Thank you
Hi, I have a setup:
and
but for some reason, I get this form of response:
in the embedded chat on my website.
How to fix this?
Thank you
It looks like your topic is missing some important information. Could you provide the following if applicable.
Hey @Ikeal777_Blah - so I think I understand what you’re say / asking. Even when setting OpenAi response mode to text, it still returns a json payload with other metadata such as the number of tokens consumed, and other relevant information. What you’ll need to do is index into the response in json to have it return just the text.
In a lot of cases that will look something like {{ $json.choices[0].message.content }}
which will then return the text content. Even then, if it is still returning JSON, you’d still be able to index into the “text” property of that JSON string and return the text only back to your site as well.
Either way, happy to try and help with this and can answer any additional questions you have.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.