Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
185 changes: 176 additions & 9 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0"
},
"version": "1.7.1"
"version": "1.8.0"
},
"paths": {
"/decode": {
Expand Down Expand Up @@ -41,6 +41,34 @@
}
}
},
"400": {
"description": "Batch is empty",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch is empty",
"error_type": "empty"
}
}
}
},
"413": {
"description": "Batch size error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch size error",
"error_type": "validation"
}
}
}
},
"422": {
"description": "Tokenization error",
"content": {
Expand All @@ -49,8 +77,8 @@
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"message": "Tokenization error",
"type": "tokenizer"
"error": "Tokenization error",
"error_type": "tokenizer"
}
}
}
Expand Down Expand Up @@ -86,6 +114,20 @@
}
}
},
"400": {
"description": "Batch is empty",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch is empty",
"error_type": "empty"
}
}
}
},
"413": {
"description": "Batch size error",
"content": {
Expand Down Expand Up @@ -174,6 +216,20 @@
}
}
},
"400": {
"description": "Batch is empty",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch is empty",
"error_type": "empty"
}
}
}
},
"413": {
"description": "Batch size error",
"content": {
Expand Down Expand Up @@ -261,6 +317,20 @@
}
}
},
"400": {
"description": "Batch is empty",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch is empty",
"error_type": "empty"
}
}
}
},
"413": {
"description": "Batch size error",
"content": {
Expand Down Expand Up @@ -418,6 +488,20 @@
}
}
},
"400": {
"description": "Batch is empty",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch is empty",
"error_type": "empty"
}
}
}
},
"413": {
"description": "Batch size error",
"content": {
Expand Down Expand Up @@ -506,6 +590,20 @@
}
}
},
"400": {
"description": "Batch is empty",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch is empty",
"error_type": "empty"
}
}
}
},
"413": {
"description": "Batch size error",
"content": {
Expand Down Expand Up @@ -593,6 +691,20 @@
}
}
},
"400": {
"description": "Batch is empty",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch is empty",
"error_type": "empty"
}
}
}
},
"413": {
"description": "Batch size error",
"content": {
Expand Down Expand Up @@ -680,6 +792,34 @@
}
}
},
"400": {
"description": "Batch is empty",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch is empty",
"error_type": "empty"
}
}
}
},
"413": {
"description": "Batch size error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Batch size error",
"error_type": "validation"
}
}
}
},
"422": {
"description": "Tokenization error",
"content": {
Expand All @@ -688,8 +828,8 @@
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"message": "Tokenization error",
"type": "tokenizer"
"error": "Tokenization error",
"error_type": "tokenizer"
}
}
}
Expand Down Expand Up @@ -725,6 +865,20 @@
}
}
},
"400": {
"description": "Batch is empty",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OpenAICompatErrorResponse"
},
"example": {
"message": "Batch is empty",
"type": "empty"
}
}
}
},
"413": {
"description": "Batch size error",
"content": {
Expand Down Expand Up @@ -900,6 +1054,14 @@
"inputs"
],
"properties": {
"dimensions": {
"type": "integer",
"description": "The number of dimensions that the output embeddings should have. If not set, the original\nshape of the representation will be returned instead.",
"default": "null",
"example": "null",
"nullable": true,
"minimum": 0
},
"inputs": {
"$ref": "#/components/schemas/Input"
},
Expand Down Expand Up @@ -1044,7 +1206,8 @@
"Backend",
"Overloaded",
"Validation",
"Tokenizer"
"Tokenizer",
"Empty"
]
},
"Info": {
Expand Down Expand Up @@ -1269,6 +1432,13 @@
"input"
],
"properties": {
"dimensions": {
"type": "integer",
"default": "null",
"example": "null",
"nullable": true,
"minimum": 0
},
"encoding_format": {
"allOf": [
{
Expand Down Expand Up @@ -1554,9 +1724,6 @@
},
"SimilarityParameters": {
"type": "object",
"required": [
"truncation_direction"
],
"properties": {
"prompt_name": {
"type": "string",
Expand Down
Loading