Hi all,
I have a collection called 'colChat' and a button with onSelect calling a custom connector that utilises GPT-3.5-turbo api.
The onSelect code is like this:
Set(
varResponse,
'GPT-35-Turbo-API-Connector'.GPT35TURBO(
"gpt-3.5-turbo",
Collect(
colChat,
{
role: "user",
content: TextInput1.Text
//content: Concatenate(enfPr, TextInput1.Text)
}
)
)
);
Collect(
colChat,
First(varResponse.choices).message
);
colChat is the data source for a gallery where the user sees his own prompt as well as api's response. I want to concatenate a string called enfPr with the users prompt (which is typed in TextInput1 textbox) but in that case the user also sees the enfPr string in the gallery. Is there anyway this can be avoided?
I could alternatively write the api call like this if it could help:
{role: "user", content: enfPr},
{role: "user", content: TextInput1.Text}
I hope what i wrote is making sense... Thanks a lot in advance.