Skip to content

Instantly share code, notes, and snippets.

[
{
@{outputs('Compose_ConversationHistoryReversed_2')}
},
{
"role": "system", "content": "You are a helpful assistant. Format all your replies in HTML code, but dont mention HTML in the response."
}
]
substring(variables('ConversationHistoryReversed'), 1, sub(length(variables('ConversationHistoryReversed')),2))
substring(variables('ConversationHistoryReversed'), 1, sub(length(variables('ConversationHistoryReversed')),2))
replace(variables('ConversationHistoryReversed'), '<p>', '')
replace(variables('ConversationHistoryReversed'), '</p>', '')
reverse(variables('ArrayMessages'))
{
"properties": {
"@@odata.context": {
"type": [
"string",
"null"
]
},
"@@odata.count": {
"type": "integer"
{
"properties": {
"@@odata.type": {
"type": "string"
},
"displayName": {
"type": "string"
},
"id": {
"type": "string"
{
"properties": {
"@@odata.context": {
"type": [
"string",
"null"
]
},
"attachments": {
"type": "array"