Skip to content

Commit

Permalink
Update generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-grella committed Oct 30, 2023
1 parent d97c601 commit d202602
Show file tree
Hide file tree
Showing 28 changed files with 5,253 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
{
"swagger": "2.0",
"info": {
"title": "languagemodeling/v1/languagemodeling.proto",
"version": "version not set"
},
"tags": [
{
"name": "LanguageModelingService"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/v1/predict": {
"post": {
"operationId": "LanguageModelingService_Predict",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1LanguageModelingResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1LanguageModelingRequest"
}
}
],
"tags": [
"LanguageModelingService"
]
}
}
},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v1LanguageModelingParameters": {
"type": "object",
"properties": {
"k": {
"type": "integer",
"format": "int32"
}
}
},
"v1LanguageModelingRequest": {
"type": "object",
"properties": {
"input": {
"type": "string"
},
"parameters": {
"$ref": "#/definitions/v1LanguageModelingParameters"
}
}
},
"v1LanguageModelingResponse": {
"type": "object",
"properties": {
"tokens": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Token"
}
}
}
},
"v1Token": {
"type": "object",
"properties": {
"start": {
"type": "integer",
"format": "int32"
},
"end": {
"type": "integer",
"format": "int32"
},
"words": {
"type": "array",
"items": {
"type": "string"
}
},
"scores": {
"type": "array",
"items": {
"type": "number",
"format": "double"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"swagger": "2.0",
"info": {
"title": "questionanswering/v1/questionanswering.proto",
"version": "version not set"
},
"tags": [
{
"name": "QuestionAnsweringService"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/v1/answer": {
"post": {
"operationId": "QuestionAnsweringService_Answer",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1AnswerResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1AnswerRequest"
}
}
],
"tags": [
"QuestionAnsweringService"
]
}
}
},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v1Answer": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"start": {
"type": "string",
"format": "int64"
},
"end": {
"type": "string",
"format": "int64"
},
"score": {
"type": "number",
"format": "double"
}
}
},
"v1AnswerRequest": {
"type": "object",
"properties": {
"question": {
"type": "string"
},
"passage": {
"type": "string"
},
"options": {
"$ref": "#/definitions/v1QuestionAnsweringOptions"
}
}
},
"v1AnswerResponse": {
"type": "object",
"properties": {
"answers": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Answer"
}
}
}
},
"v1QuestionAnsweringOptions": {
"type": "object",
"properties": {
"maxAnswers": {
"type": "string",
"format": "int64"
},
"maxAnswersLen": {
"type": "string",
"format": "int64"
},
"maxCandidates": {
"type": "string",
"format": "int64"
},
"minScore": {
"type": "number",
"format": "double"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"swagger": "2.0",
"info": {
"title": "textclassification/v1/textclassification.proto",
"version": "version not set"
},
"tags": [
{
"name": "TextClassificationService"
}
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/v1/classify": {
"post": {
"operationId": "TextClassificationService_Classify",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1ClassifyResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1ClassifyRequest"
}
}
],
"tags": [
"TextClassificationService"
]
}
}
},
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v1ClassifyRequest": {
"type": "object",
"properties": {
"input": {
"type": "string"
}
}
},
"v1ClassifyResponse": {
"type": "object",
"properties": {
"labels": {
"type": "array",
"items": {
"type": "string"
}
},
"scores": {
"type": "array",
"items": {
"type": "number",
"format": "double"
}
}
}
}
}
}
Loading

0 comments on commit d202602

Please sign in to comment.