diff --git a/README.md b/README.md index 93bdd12..95b7e00 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,5 @@ This project stores [Plugins](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web - [Webpilot](./plugins/webpilot) - [FastGPT](./plugins/fastgpt) - [NPM Registry Search API](./plugins/npmsearch) +- [CodeInterpreter](./plugins/codeinterpreterapi) see: [leezhuuuuu/Code-Interpreter-Api](https://github.com/leezhuuuuu/Code-Interpreter-Api) diff --git a/plugins/codeinterpreterapi/README.md b/plugins/codeinterpreterapi/README.md new file mode 100644 index 0000000..c050f80 --- /dev/null +++ b/plugins/codeinterpreterapi/README.md @@ -0,0 +1,27 @@ +# CodeInterpreter + +> Run a given Python program and return the output. + +## github +https://github.com/leezhuuuuu/Code-Interpreter-Api + +## Schema +[openapi.json](./openapi.json) + +## Servers + +`https://code.leez.tech` + +## Operations + +1. CodeInterpreter + +## Authentication + +type: none + +## Preview + +![Preview](./preview.png) + + diff --git a/plugins/codeinterpreterapi/openapi.json b/plugins/codeinterpreterapi/openapi.json new file mode 100644 index 0000000..bbf2b54 --- /dev/null +++ b/plugins/codeinterpreterapi/openapi.json @@ -0,0 +1,46 @@ +{ + "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: `{}`" + } + } + } + } + } + } + } + } + } +} diff --git a/plugins/codeinterpreterapi/preview.png b/plugins/codeinterpreterapi/preview.png new file mode 100644 index 0000000..7316609 Binary files /dev/null and b/plugins/codeinterpreterapi/preview.png differ