Skip to content

Commit c9c92f6

Browse files
committed
chore: Update OpenAPI specification from main repo
Signed-off-by: Eden Reich <eden.reich@gmail.com>
1 parent 7ea7473 commit c9c92f6

File tree

1 file changed

+49
-22
lines changed

1 file changed

+49
-22
lines changed

openapi.yaml

Lines changed: 49 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,56 @@ paths:
3737
properties:
3838
model:
3939
type: string
40-
prompt:
40+
messages:
41+
type: array
42+
items:
43+
type: object
44+
properties:
45+
role:
46+
type: string
47+
enum:
48+
- system
49+
- user
50+
- assistant
51+
content:
52+
type: string
53+
responses:
54+
"200":
55+
description: Generated content
56+
content:
57+
application/json:
58+
schema:
59+
type: object
60+
properties:
61+
provider:
62+
type: string
63+
response:
64+
type: object
65+
properties:
66+
role:
67+
type: string
68+
model:
69+
type: string
70+
content:
71+
type: string
72+
"400":
73+
description: Bad request
74+
content:
75+
application/json:
76+
schema:
77+
type: object
78+
properties:
79+
error:
80+
type: string
81+
"500":
82+
description: Internal server error
83+
content:
84+
application/json:
85+
schema:
86+
type: object
87+
properties:
88+
error:
4189
type: string
42-
responses:
43-
"200":
44-
description: Generated content
45-
content:
46-
application/json:
47-
schema:
48-
type: object
49-
properties:
50-
provider:
51-
type: string
52-
response:
53-
type: string
54-
"500":
55-
description: Internal server error
56-
content:
57-
application/json:
58-
schema:
59-
type: object
60-
properties:
61-
error:
62-
type: string
6390
/health:
6491
get:
6592
summary: Health check

0 commit comments

Comments
 (0)