MixerBox Calculator
MixerBox Calculator · GPT-Aktionen
MixerBox Calculator
This plugin can help you handle simple arithmetic operations.
POST /api/gpt_plugins/calculator/calculateCalculate the mathematical expressionCalculate the mathematical expression provided from user.
Ursprüngliches API-Schema
{
"openapi": "3.0.1",
"info": {
"title": "MixerBox Calculator",
"description": "This plugin can help you handle simple arithmetic operations.",
"version": "v1"
},
"servers": [
{
"url": "https://calculator.mixerbox.com"
}
],
"paths": {
"/api/gpt_plugins/calculator/calculate": {
"post": {
"operationId": "calculate",
"summary": "Calculate the mathematical expression",
"description": "Calculate the mathematical expression provided from user.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CalculateRequestSchema"
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CalculateResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"CalculateRequestSchema": {
"type": "object",
"required": [
"evalString"
],
"properties": {
"evalString": {
"type": "string",
"description": "The mathematical expression provided from user."
}
}
},
"CalculateResponse": {
"type": "object",
"properties": {
"result": {
"title": "The arithmetic result.",
"description": "The result of the arithmetic.",
"type": "string"
},
"rules": {
"title": "The array of rules which recommend gpt to follow",
"description": "The array of rules which recommend gpt to follow.",
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}