mirror of
https://github.com/ChatGPTNextWeb/NextChat-Awesome-Plugins.git
synced 2026-06-06 05:48:59 +08:00
add CodeInterpreter
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
27
plugins/codeinterpreterapi/README.md
Normal file
27
plugins/codeinterpreterapi/README.md
Normal file
@@ -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
|
||||
|
||||

|
||||
|
||||
|
||||
46
plugins/codeinterpreterapi/openapi.json
Normal file
46
plugins/codeinterpreterapi/openapi.json
Normal file
@@ -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: `{}`"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
plugins/codeinterpreterapi/preview.png
Normal file
BIN
plugins/codeinterpreterapi/preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
Reference in New Issue
Block a user