-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathopenapi.json
132 lines (132 loc) · 3.58 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
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
{
"openapi": "3.1.0",
"info": {
"description": "A GPT that allows the user to read data from a link.",
"title": "Chat PDF GPT",
"version": "v1"
},
"servers": [
{
"url": "https://gpt.chatpdf.aidocmaker.com"
}
],
"paths": {
"/read_url": {
"post": {
"description": "Allows for reading the contents of an URL link, including PDF/DOC/DOCX/PPT/CSV/XLS/XLSX/HTML content, Google Drive, Dropbox, OneDrive, aidocmaker.com docs. Always wrap image URLs from the response field `z1_image_urls` in Markdown, where each image has a ## DESCRIPTION.",
"operationId": "ChatPDFReadRrl",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ReadDocV2Request"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {}
}
},
"description": "Successful Response"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"summary": "Read the contents of an URL link",
"x-openai-isConsequential": false
}
}
},
"components": {
"schemas": {
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"title": "Detail",
"type": "array"
}
},
"title": "HTTPValidationError",
"type": "object"
},
"ReadDocV2Request": {
"properties": {
"f1_http_url": {
"description": "User will pass a HTTPS or HTTP url to a file so that the file contents can be read.",
"title": "F1 Http Url",
"type": "string"
},
"f2_query": {
"default": "",
"description": "User will pass a query string to fetch relevant sections from the contents. It will be used for sentence-level similarity search on the document based on embeddings.",
"title": "F2 Query",
"type": "string"
},
"f3_selected_pages": {
"default": [],
"description": "Filter document on these page numbers. Use empty list to get all pages.",
"items": {
"type": "integer"
},
"title": "F3 Selected Pages",
"type": "array"
}
},
"required": [
"f1_http_url"
],
"title": "ReadDocV2Request",
"type": "object"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"title": "Location",
"type": "array"
},
"msg": {
"title": "Message",
"type": "string"
},
"type": {
"title": "Error Type",
"type": "string"
}
},
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError",
"type": "object"
}
}
}
}