mirror of
https://github.com/ChatGPTNextWeb/NextChat-Awesome-Plugins.git
synced 2026-06-06 05:48:59 +08:00
47 lines
1.2 KiB
JSON
47 lines
1.2 KiB
JSON
{
|
|
"openapi": "3.1.0",
|
|
"info": {
|
|
"title": "CodeInterpreter",
|
|
"version": "1.0.0"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "https://code.leez.tech"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/runcode": {
|
|
"post": {
|
|
"operationId": "CodeInterpreter",
|
|
"x-openai-isConsequential": false,
|
|
"summary": "Run a given Python program and return the output.",
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["code", "languageType", "variables"],
|
|
"properties": {
|
|
"code": {
|
|
"type": "string",
|
|
"description": "The Python code to execute"
|
|
},
|
|
"languageType": {
|
|
"type": "string",
|
|
"description": "value is `python`"
|
|
},
|
|
"variables": {
|
|
"type": "object",
|
|
"description": "value is empty dict: `{}`"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|