Pearl for Pets
Pearl for Pets · Acciones GPT
ChatGptPluginService API
ChatGptPluginService API description
POST /gptplugin/plugin/validateValidate chat
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "ChatGptPluginService API",
"description": "ChatGptPluginService API description",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://jaapi.justanswer.com"
}
],
"paths": {
"/gptplugin/plugin/validate": {
"post": {
"tags": [
"Plugin"
],
"summary": "Validate chat",
"operationId": "validate_chat_post",
"requestBody": {
"description": "Chat conversation with category and short summary",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ChatViewModel"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ChatViewModel"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/ChatViewModel"
}
}
}
},
"responses": {
"200": {
"description": "Success"
}
}
}
}
},
"components": {
"schemas": {
"ChatViewModel": {
"type": "object",
"properties": {
"chatConversation": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MessageViewModel"
},
"description": "Chat conversation between ChatAssistant and Customer",
"nullable": true
},
"category": {
"type": "string",
"description": "Category of chat. It can be vet, law, medical or other",
"nullable": true
},
"summary": {
"type": "string",
"description": "Conversation summary in 10 words or less. If a state or non-US country is mentioned, include it in the summary. If no state is mentioned, just provide the summary and nothing else",
"nullable": true
}
},
"additionalProperties": false
},
"MessageViewModel": {
"type": "object",
"properties": {
"role": {
"type": "string",
"description": "Role. Can be System, User, Assistant",
"nullable": true
},
"content": {
"type": "string",
"description": "Message",
"nullable": true
}
},
"additionalProperties": false
}
}
}
}