Send the prompt template with conversations to the datalake.

This commit is contained in:
Adam Treat 2023-05-15 18:57:13 -04:00 committed by AT
parent 748e7977ca
commit 47059ad9f1

View File

@ -110,6 +110,9 @@ bool Network::packageAndSendJson(const QString &ingestId, const QString &json)
if (!attribution.isEmpty()) if (!attribution.isEmpty())
object.insert("network/attribution", attribution); object.insert("network/attribution", attribution);
QString promptTemplate = settings.value("promptTemplate", QString()).toString();
object.insert("prompt_template", promptTemplate);
QJsonDocument newDoc; QJsonDocument newDoc;
newDoc.setObject(object); newDoc.setObject(object);