Skip to content

Instantly share code, notes, and snippets.

@Zerg00s
Created February 19, 2023 00:50
Show Gist options
  • Save Zerg00s/5159a562123ec3082db5ddbe4b004f21 to your computer and use it in GitHub Desktop.
Save Zerg00s/5159a562123ec3082db5ddbe4b004f21 to your computer and use it in GitHub Desktop.
Open AI - Teams Chat Bot
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"object": {
"type": "string"
},
"created": {
"type": "integer"
},
"model": {
"type": "string"
},
"choices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"index": {
"type": "integer"
},
"logprobs": {},
"finish_reason": {
"type": "string"
}
},
"required": [
"text",
"index",
"logprobs",
"finish_reason"
]
}
},
"usage": {
"type": "object",
"properties": {
"prompt_tokens": {
"type": "integer"
},
"completion_tokens": {
"type": "integer"
},
"total_tokens": {
"type": "integer"
}
}
}
}
}
{
"type": "object",
"properties": {
"@@odata.type": {
"type": "string"
},
"etag": {
"type": "string"
},
"messageType": {
"type": "string"
},
"createdDateTime": {
"type": "string"
},
"lastModifiedDateTime": {
"type": "string"
},
"importance": {
"type": "string"
},
"locale": {
"type": "string"
},
"webUrl": {
"type": "string"
},
"id": {
"type": "string"
},
"from": {
"type": "object",
"properties": {
"user": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"displayName": {
"type": "string"
},
"userIdentityType": {
"type": "string"
},
"tenantId": {
"type": "string"
}
}
}
}
},
"body": {
"type": "object",
"properties": {
"contentType": {
"type": "string"
},
"content": {
"type": "string"
}
}
},
"channelIdentity": {
"type": "object",
"properties": {
"teamId": {
"type": "string"
},
"channelId": {
"type": "string"
}
}
},
"attachments": {
"type": "array"
},
"mentions": {
"type": "array"
},
"reactions": {
"type": "array"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment