-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathopenapi.json
46 lines (46 loc) · 1.16 KB
/
openapi.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: `{}`"
}
}
}
}
}
}
}
}
}
}