1
+ ---
2
+ openapi : " 3.0.1"
3
+ info :
4
+ title : " MyGPT API test"
5
+ description : " This is openapi file for mygpt apis."
6
+ version : 3.0.1
7
+ servers :
8
+ - url : " http://walletgpt.info:5050"
9
+ tags :
10
+ - name : brain
11
+ paths :
12
+ /brains/ :
13
+ post :
14
+ tags :
15
+ - brain
16
+ parameters : []
17
+ requestBody :
18
+ content :
19
+ application/json :
20
+ schema :
21
+ $ref : ' #/components/schemas/CreateBrainProperties'
22
+ responses :
23
+ " 200 " :
24
+ description : " Generated by SwaggerHub Explore"
25
+ security :
26
+ - TokenCredentials : []
27
+ /upload :
28
+ post :
29
+ tags :
30
+ - upload
31
+ parameters :
32
+ - in : query
33
+ name : brain_id
34
+ required : true
35
+ description : ID for the brain
36
+ schema :
37
+ type : string
38
+ default : " 780dc579-49a2-4b2f-82d0-5cca26515179"
39
+ requestBody :
40
+ required : true
41
+ content :
42
+ multipart/form-data :
43
+ schema :
44
+ type : object
45
+ properties :
46
+ uploadFile :
47
+ type : string
48
+ format : binary
49
+ responses :
50
+ " 200 " :
51
+ description : " Generated by SwaggerHub Explore"
52
+ security :
53
+ - TokenCredentials : []
54
+ /crawl :
55
+ post :
56
+ tags :
57
+ - crawl
58
+ parameters :
59
+ - in : query
60
+ name : brain_id
61
+ required : true
62
+ description : ID for the brain
63
+ schema :
64
+ type : string
65
+ default : " 780dc579-49a2-4b2f-82d0-5cca26515179"
66
+ requestBody :
67
+ required : true
68
+ content :
69
+ application/json :
70
+ schema :
71
+ $ref : ' #/components/schemas/CrawlWebsite'
72
+ responses :
73
+ " 200 " :
74
+ description : " Generated by SwaggerHub Explore"
75
+ security :
76
+ - TokenCredentials : []
77
+ /chat/{chat_id}/question/stream :
78
+ post :
79
+ tags :
80
+ - chat
81
+ parameters :
82
+ - name : chat_id
83
+ in : path
84
+ required : true
85
+ description : ID of the chat
86
+ schema :
87
+ type : string
88
+ default : " 021a43da-22cd-4218-a037-5f2f1ac43056"
89
+ - name : brain_id
90
+ in : query
91
+ required : true
92
+ description : ID for the brain
93
+ schema :
94
+ type : string
95
+ default : " 780dc579-49a2-4b2f-82d0-5cca26515179"
96
+ requestBody :
97
+ required : true
98
+ content :
99
+ application/json :
100
+ schema :
101
+ type : object
102
+ properties :
103
+ question :
104
+ type : string
105
+ default : " What is python?"
106
+ responses :
107
+ " 200 " :
108
+ description : " Generated by SwaggerHub Explore"
109
+ content :
110
+ application/json :
111
+ schema :
112
+ $ref : ' #/components/schemas/ChatHistoryList'
113
+ security :
114
+ - TokenCredentials : []
115
+ /chat/{chat_id}/history :
116
+ get :
117
+ tags :
118
+ - chat
119
+ parameters :
120
+ - name : chat_id
121
+ in : path
122
+ required : true
123
+ description : ID of the chat
124
+ schema :
125
+ type : string
126
+ default : " a9e343fb-f37c-449f-ab68-e51332c498e8"
127
+ responses :
128
+ " 200 " :
129
+ description : " Generated by SwaggerHub Explore"
130
+ security :
131
+ - TokenCredentials : []
132
+ /chat/{brain_id}/brain_history :
133
+ get :
134
+ tags :
135
+ - chat
136
+ parameters :
137
+ - name : brain_id
138
+ in : path
139
+ required : true
140
+ description : ID of the brain
141
+ schema :
142
+ type : string
143
+ default : " 780dc579-49a2-4b2f-82d0-5cca26515179"
144
+ responses :
145
+ " 200 " :
146
+ description : " Generated by SwaggerHub Explore"
147
+ security :
148
+ - TokenCredentials : []
149
+ components :
150
+ schemas :
151
+ CreateBrainProperties :
152
+ type : object
153
+ properties :
154
+ description :
155
+ type : string
156
+ default : " Swagger API test"
157
+ name :
158
+ type : string
159
+ default : " Default swagger brain"
160
+ model :
161
+ type : string
162
+ default : " gpt-3.5-turbo-0613"
163
+ max_tokens :
164
+ type : integer
165
+ default : 378
166
+ openai_api_key :
167
+ type : string
168
+ default : " sk-"
169
+ temperature :
170
+ type : string
171
+ default : " 0.75"
172
+ CrawlWebsite :
173
+ type : object
174
+ properties :
175
+ depth :
176
+ type : integer
177
+ default : 1
178
+ js :
179
+ type : boolean
180
+ default : false
181
+ max_pages :
182
+ type : integer
183
+ default : 100
184
+ max_time :
185
+ type : integer
186
+ default : 60
187
+ url :
188
+ type : string
189
+ default : " https://medium.com/codingthesmartway-com-blog/quivr-the-open-source-ai-project-thats-your-second-brain-in-the-cloud-17e3541fe45c"
190
+ ChatHistory :
191
+ type : object
192
+ properties :
193
+ chat_id :
194
+ type : string
195
+ message_id :
196
+ type : string
197
+ user_message :
198
+ type : string
199
+ assistant :
200
+ type : string
201
+ message_time :
202
+ type : string
203
+ ChatHistoryList :
204
+ type : array
205
+ items :
206
+ $ref : ' #/components/schemas/ChatHistory'
207
+ securitySchemes :
208
+ TokenCredentials :
209
+ type : " http"
210
+ scheme : " bearer"
0 commit comments