Skip to content

Commit b22dd5c

Browse files
authored
Update docs/openapi.json for v1.8.0 (#708)
1 parent 92402e5 commit b22dd5c

File tree

1 file changed

+176
-9
lines changed

1 file changed

+176
-9
lines changed

docs/openapi.json

Lines changed: 176 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"name": "Apache 2.0",
1111
"url": "https://www.apache.org/licenses/LICENSE-2.0"
1212
},
13-
"version": "1.7.1"
13+
"version": "1.8.0"
1414
},
1515
"paths": {
1616
"/decode": {
@@ -41,6 +41,34 @@
4141
}
4242
}
4343
},
44+
"400": {
45+
"description": "Batch is empty",
46+
"content": {
47+
"application/json": {
48+
"schema": {
49+
"$ref": "#/components/schemas/ErrorResponse"
50+
},
51+
"example": {
52+
"error": "Batch is empty",
53+
"error_type": "empty"
54+
}
55+
}
56+
}
57+
},
58+
"413": {
59+
"description": "Batch size error",
60+
"content": {
61+
"application/json": {
62+
"schema": {
63+
"$ref": "#/components/schemas/ErrorResponse"
64+
},
65+
"example": {
66+
"error": "Batch size error",
67+
"error_type": "validation"
68+
}
69+
}
70+
}
71+
},
4472
"422": {
4573
"description": "Tokenization error",
4674
"content": {
@@ -49,8 +77,8 @@
4977
"$ref": "#/components/schemas/ErrorResponse"
5078
},
5179
"example": {
52-
"message": "Tokenization error",
53-
"type": "tokenizer"
80+
"error": "Tokenization error",
81+
"error_type": "tokenizer"
5482
}
5583
}
5684
}
@@ -86,6 +114,20 @@
86114
}
87115
}
88116
},
117+
"400": {
118+
"description": "Batch is empty",
119+
"content": {
120+
"application/json": {
121+
"schema": {
122+
"$ref": "#/components/schemas/ErrorResponse"
123+
},
124+
"example": {
125+
"error": "Batch is empty",
126+
"error_type": "empty"
127+
}
128+
}
129+
}
130+
},
89131
"413": {
90132
"description": "Batch size error",
91133
"content": {
@@ -174,6 +216,20 @@
174216
}
175217
}
176218
},
219+
"400": {
220+
"description": "Batch is empty",
221+
"content": {
222+
"application/json": {
223+
"schema": {
224+
"$ref": "#/components/schemas/ErrorResponse"
225+
},
226+
"example": {
227+
"error": "Batch is empty",
228+
"error_type": "empty"
229+
}
230+
}
231+
}
232+
},
177233
"413": {
178234
"description": "Batch size error",
179235
"content": {
@@ -261,6 +317,20 @@
261317
}
262318
}
263319
},
320+
"400": {
321+
"description": "Batch is empty",
322+
"content": {
323+
"application/json": {
324+
"schema": {
325+
"$ref": "#/components/schemas/ErrorResponse"
326+
},
327+
"example": {
328+
"error": "Batch is empty",
329+
"error_type": "empty"
330+
}
331+
}
332+
}
333+
},
264334
"413": {
265335
"description": "Batch size error",
266336
"content": {
@@ -418,6 +488,20 @@
418488
}
419489
}
420490
},
491+
"400": {
492+
"description": "Batch is empty",
493+
"content": {
494+
"application/json": {
495+
"schema": {
496+
"$ref": "#/components/schemas/ErrorResponse"
497+
},
498+
"example": {
499+
"error": "Batch is empty",
500+
"error_type": "empty"
501+
}
502+
}
503+
}
504+
},
421505
"413": {
422506
"description": "Batch size error",
423507
"content": {
@@ -506,6 +590,20 @@
506590
}
507591
}
508592
},
593+
"400": {
594+
"description": "Batch is empty",
595+
"content": {
596+
"application/json": {
597+
"schema": {
598+
"$ref": "#/components/schemas/ErrorResponse"
599+
},
600+
"example": {
601+
"error": "Batch is empty",
602+
"error_type": "empty"
603+
}
604+
}
605+
}
606+
},
509607
"413": {
510608
"description": "Batch size error",
511609
"content": {
@@ -593,6 +691,20 @@
593691
}
594692
}
595693
},
694+
"400": {
695+
"description": "Batch is empty",
696+
"content": {
697+
"application/json": {
698+
"schema": {
699+
"$ref": "#/components/schemas/ErrorResponse"
700+
},
701+
"example": {
702+
"error": "Batch is empty",
703+
"error_type": "empty"
704+
}
705+
}
706+
}
707+
},
596708
"413": {
597709
"description": "Batch size error",
598710
"content": {
@@ -680,6 +792,34 @@
680792
}
681793
}
682794
},
795+
"400": {
796+
"description": "Batch is empty",
797+
"content": {
798+
"application/json": {
799+
"schema": {
800+
"$ref": "#/components/schemas/ErrorResponse"
801+
},
802+
"example": {
803+
"error": "Batch is empty",
804+
"error_type": "empty"
805+
}
806+
}
807+
}
808+
},
809+
"413": {
810+
"description": "Batch size error",
811+
"content": {
812+
"application/json": {
813+
"schema": {
814+
"$ref": "#/components/schemas/ErrorResponse"
815+
},
816+
"example": {
817+
"error": "Batch size error",
818+
"error_type": "validation"
819+
}
820+
}
821+
}
822+
},
683823
"422": {
684824
"description": "Tokenization error",
685825
"content": {
@@ -688,8 +828,8 @@
688828
"$ref": "#/components/schemas/ErrorResponse"
689829
},
690830
"example": {
691-
"message": "Tokenization error",
692-
"type": "tokenizer"
831+
"error": "Tokenization error",
832+
"error_type": "tokenizer"
693833
}
694834
}
695835
}
@@ -725,6 +865,20 @@
725865
}
726866
}
727867
},
868+
"400": {
869+
"description": "Batch is empty",
870+
"content": {
871+
"application/json": {
872+
"schema": {
873+
"$ref": "#/components/schemas/OpenAICompatErrorResponse"
874+
},
875+
"example": {
876+
"message": "Batch is empty",
877+
"type": "empty"
878+
}
879+
}
880+
}
881+
},
728882
"413": {
729883
"description": "Batch size error",
730884
"content": {
@@ -900,6 +1054,14 @@
9001054
"inputs"
9011055
],
9021056
"properties": {
1057+
"dimensions": {
1058+
"type": "integer",
1059+
"description": "The number of dimensions that the output embeddings should have. If not set, the original\nshape of the representation will be returned instead.",
1060+
"default": "null",
1061+
"example": "null",
1062+
"nullable": true,
1063+
"minimum": 0
1064+
},
9031065
"inputs": {
9041066
"$ref": "#/components/schemas/Input"
9051067
},
@@ -1044,7 +1206,8 @@
10441206
"Backend",
10451207
"Overloaded",
10461208
"Validation",
1047-
"Tokenizer"
1209+
"Tokenizer",
1210+
"Empty"
10481211
]
10491212
},
10501213
"Info": {
@@ -1269,6 +1432,13 @@
12691432
"input"
12701433
],
12711434
"properties": {
1435+
"dimensions": {
1436+
"type": "integer",
1437+
"default": "null",
1438+
"example": "null",
1439+
"nullable": true,
1440+
"minimum": 0
1441+
},
12721442
"encoding_format": {
12731443
"allOf": [
12741444
{
@@ -1554,9 +1724,6 @@
15541724
},
15551725
"SimilarityParameters": {
15561726
"type": "object",
1557-
"required": [
1558-
"truncation_direction"
1559-
],
15601727
"properties": {
15611728
"prompt_name": {
15621729
"type": "string",

0 commit comments

Comments
 (0)