Skip to content

Commit

Permalink
v0.3.0 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierDehaene committed Feb 16, 2023
1 parent 439fcaf commit c720555
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 55 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 39 additions & 46 deletions docs/openapi.json
Expand Up @@ -11,7 +11,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0"
},
"version": "0.2.1"
"version": "0.3.0"
},
"paths": {
"/generate": {
Expand All @@ -38,10 +38,7 @@
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GenerateResponse"
}
"$ref": "#/components/schemas/GenerateResponse"
}
}
}
Expand All @@ -51,10 +48,7 @@
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorResponse"
}
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Input validation error"
Expand All @@ -67,10 +61,7 @@
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorResponse"
}
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Request failed during generation"
Expand All @@ -83,10 +74,7 @@
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorResponse"
}
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Model is overloaded"
Expand All @@ -99,10 +87,7 @@
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorResponse"
}
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Incomplete generation"
Expand Down Expand Up @@ -136,25 +121,19 @@
"200": {
"description": "Generated Text",
"content": {
"text/event-stream ": {
"text/event-stream": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/StreamResponse"
}
"$ref": "#/components/schemas/StreamResponse"
}
}
}
},
"422": {
"description": "Input validation error",
"content": {
"text/event-stream ": {
"text/event-stream": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorResponse"
}
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Input validation error"
Expand All @@ -165,12 +144,9 @@
"424": {
"description": "Generation Error",
"content": {
"text/event-stream ": {
"text/event-stream": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorResponse"
}
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Request failed during generation"
Expand All @@ -181,12 +157,9 @@
"429": {
"description": "Model is overloaded",
"content": {
"text/event-stream ": {
"text/event-stream": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorResponse"
}
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Model is overloaded"
Expand All @@ -197,12 +170,9 @@
"500": {
"description": "Incomplete generation",
"content": {
"text/event-stream ": {
"text/event-stream": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ErrorResponse"
}
"$ref": "#/components/schemas/ErrorResponse"
},
"example": {
"error": "Incomplete generation"
Expand All @@ -213,6 +183,29 @@
},
"deprecated": false
}
},
"/metrics": {
"get": {
"tags": [
"Text Generation Inference"
],
"summary": "Prometheus metrics scrape endpoint",
"description": "Prometheus metrics scrape endpoint",
"operationId": "metrics",
"responses": {
"200": {
"description": "Prometheus Metrics",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
}
},
"deprecated": false
}
}
},
"components": {
Expand Down
2 changes: 1 addition & 1 deletion launcher/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "text-generation-launcher"
version = "0.2.1"
version = "0.3.0"
edition = "2021"
authors = ["Olivier Dehaene"]
description = "Text Generation Launcher"
Expand Down
2 changes: 1 addition & 1 deletion router/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "text-generation-router"
version = "0.2.1"
version = "0.3.0"
edition = "2021"
authors = ["Olivier Dehaene"]
description = "Text Generation Webserver"
Expand Down
2 changes: 1 addition & 1 deletion router/client/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "text-generation-client"
version = "0.2.1"
version = "0.3.0"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion router/grpc-metadata/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "grpc-metadata"
version = "0.1.0"
version = "0.3.0"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion server/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "text-generation"
version = "0.2.1"
version = "0.3.0"
description = "Text Generation Inference Python gRPC Server"
authors = ["Olivier Dehaene <olivier@huggingface.co>"]

Expand Down

0 comments on commit c720555

Please sign in to comment.