-
Notifications
You must be signed in to change notification settings - Fork 0
/
gptactions.yaml
137 lines (137 loc) · 4.18 KB
/
gptactions.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
openapi: 3.0.0
info:
title: API Wrapper
description: Various APIs wrapped in a single API.
version: 1.0.0
servers:
- url: https://gpt.theexponential.net
paths:
/search:
post:
operationId: searchQuery
summary: Executes a search query.
description: Accepts a search query and returns results.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: The search query string.
/paperSearch:
post:
operationId: paperSearchQuery
summary: Executes a search query against a scientific paper database.
description: Accepts a search query and returns results.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: The search query string.
/browsePage:
post:
operationId: browsePage
summary: Scrape a specific url and get the contents of the page.
description: Accepts a url and returns the contents of the page.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type: string
description: The url of the page to scrape.
/codeRunner:
post:
operationId: runCode
summary: Run specified code in a specified language.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [code, lang]
properties:
code:
type: string
description: The code to run.
lang:
type: string
enum: [rust, nodejs, c, cpp, csharp, go, bash, lua, java]
/pythonSandbox:
post:
operationId: pythonSandbox
summary: Run specified code in a networked python sandbox. Add additional python/system (apt) packages.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [code, pyPackages, sysPackages]
properties:
code:
type: string
description: The code to run.
pyPackages:
type: array
items:
type: string
description: Additional python packages to install. Pip/PyPi package names.
sysPackages:
type: array
items:
type: string
description: Additional system packages to install. Ubuntu/Apt package names.
/imageGen:
post:
operationId: generateImage
summary: Generates an image based on the provided prompt and specifications.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [prompt, aspect_ratio, num_images]
properties:
prompt:
type: string
aspect_ratio:
type: string
enum: [square, landscape, portrait]
num_images:
type: integer
minimum: 1
maximum: 1
model:
type: string
enum: [sd-xl, playground-v2, open-dalle]
/languageModels:
post:
operationId: languageModels
summary: Ask a question/give a prompt to a language model.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [prompt, aspect_ratio, num_images]
properties:
prompt:
type: string
model:
type: string
enum: [mistral-7b, mistral-small, mistral-medium, google-gemini-pro]