-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtxyz.ai.yaml
83 lines (83 loc) · 2.16 KB
/
txyz.ai.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
components:
schemas:
ChatPluginRequest:
properties:
arxiv_id:
title: Arxiv Id
type: string
chat_history:
items:
$ref: '#/components/schemas/ChatHistory'
title: Chat History
type: array
query:
title: Query
type: string
required:
- arxiv_id
- query
title: ChatPluginRequest
type: object
SummarizePluginRequest:
properties:
arxiv_id:
title: Arxiv Id
type: string
required:
- arxiv_id
title: SummarizePluginRequest
type: object
info:
title: Txyz Plugin
version: 0.1.0
description: A plugin help researchers read arxiv papers.
openapi: 3.0.2
servers:
- url: https://api.txyz.ai
paths:
/chat_plugin/:
post:
description: fastAPI POST /chat to send a new message to the chat. takes sessionId
(String), and query(String) as input and returns a message(string)
operationId: chat_plugin_chat_plugin__post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ChatPluginRequest'
required: true
responses:
'200':
content:
application/json:
schema: {}
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Chat Plugin
/summarize_plugin/:
post:
operationId: summarize_plugin_summarize_plugin__post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SummarizePluginRequest'
required: true
responses:
'200':
content:
application/json:
schema: {}
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Summarize Plugin