|
10 | 10 | "name": "Apache 2.0", |
11 | 11 | "url": "https://www.apache.org/licenses/LICENSE-2.0" |
12 | 12 | }, |
13 | | - "version": "1.7.1" |
| 13 | + "version": "1.8.0" |
14 | 14 | }, |
15 | 15 | "paths": { |
16 | 16 | "/decode": { |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | }, |
| 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 | + }, |
44 | 72 | "422": { |
45 | 73 | "description": "Tokenization error", |
46 | 74 | "content": { |
|
49 | 77 | "$ref": "#/components/schemas/ErrorResponse" |
50 | 78 | }, |
51 | 79 | "example": { |
52 | | - "message": "Tokenization error", |
53 | | - "type": "tokenizer" |
| 80 | + "error": "Tokenization error", |
| 81 | + "error_type": "tokenizer" |
54 | 82 | } |
55 | 83 | } |
56 | 84 | } |
|
86 | 114 | } |
87 | 115 | } |
88 | 116 | }, |
| 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 | + }, |
89 | 131 | "413": { |
90 | 132 | "description": "Batch size error", |
91 | 133 | "content": { |
|
174 | 216 | } |
175 | 217 | } |
176 | 218 | }, |
| 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 | + }, |
177 | 233 | "413": { |
178 | 234 | "description": "Batch size error", |
179 | 235 | "content": { |
|
261 | 317 | } |
262 | 318 | } |
263 | 319 | }, |
| 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 | + }, |
264 | 334 | "413": { |
265 | 335 | "description": "Batch size error", |
266 | 336 | "content": { |
|
418 | 488 | } |
419 | 489 | } |
420 | 490 | }, |
| 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 | + }, |
421 | 505 | "413": { |
422 | 506 | "description": "Batch size error", |
423 | 507 | "content": { |
|
506 | 590 | } |
507 | 591 | } |
508 | 592 | }, |
| 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 | + }, |
509 | 607 | "413": { |
510 | 608 | "description": "Batch size error", |
511 | 609 | "content": { |
|
593 | 691 | } |
594 | 692 | } |
595 | 693 | }, |
| 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 | + }, |
596 | 708 | "413": { |
597 | 709 | "description": "Batch size error", |
598 | 710 | "content": { |
|
680 | 792 | } |
681 | 793 | } |
682 | 794 | }, |
| 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 | + }, |
683 | 823 | "422": { |
684 | 824 | "description": "Tokenization error", |
685 | 825 | "content": { |
|
688 | 828 | "$ref": "#/components/schemas/ErrorResponse" |
689 | 829 | }, |
690 | 830 | "example": { |
691 | | - "message": "Tokenization error", |
692 | | - "type": "tokenizer" |
| 831 | + "error": "Tokenization error", |
| 832 | + "error_type": "tokenizer" |
693 | 833 | } |
694 | 834 | } |
695 | 835 | } |
|
725 | 865 | } |
726 | 866 | } |
727 | 867 | }, |
| 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 | + }, |
728 | 882 | "413": { |
729 | 883 | "description": "Batch size error", |
730 | 884 | "content": { |
|
900 | 1054 | "inputs" |
901 | 1055 | ], |
902 | 1056 | "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 | + }, |
903 | 1065 | "inputs": { |
904 | 1066 | "$ref": "#/components/schemas/Input" |
905 | 1067 | }, |
|
1044 | 1206 | "Backend", |
1045 | 1207 | "Overloaded", |
1046 | 1208 | "Validation", |
1047 | | - "Tokenizer" |
| 1209 | + "Tokenizer", |
| 1210 | + "Empty" |
1048 | 1211 | ] |
1049 | 1212 | }, |
1050 | 1213 | "Info": { |
|
1269 | 1432 | "input" |
1270 | 1433 | ], |
1271 | 1434 | "properties": { |
| 1435 | + "dimensions": { |
| 1436 | + "type": "integer", |
| 1437 | + "default": "null", |
| 1438 | + "example": "null", |
| 1439 | + "nullable": true, |
| 1440 | + "minimum": 0 |
| 1441 | + }, |
1272 | 1442 | "encoding_format": { |
1273 | 1443 | "allOf": [ |
1274 | 1444 | { |
|
1554 | 1724 | }, |
1555 | 1725 | "SimilarityParameters": { |
1556 | 1726 | "type": "object", |
1557 | | - "required": [ |
1558 | | - "truncation_direction" |
1559 | | - ], |
1560 | 1727 | "properties": { |
1561 | 1728 | "prompt_name": { |
1562 | 1729 | "type": "string", |
|
0 commit comments