-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d97c601
commit d202602
Showing
28 changed files
with
5,253 additions
and
0 deletions.
There are no files selected for viewing
140 changes: 140 additions & 0 deletions
140
pkg/server/gen/openapiv2/languagemodeling/v1/languagemodeling.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
149 changes: 149 additions & 0 deletions
149
pkg/server/gen/openapiv2/questionanswering/v1/questionanswering.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
108 changes: 108 additions & 0 deletions
108
pkg/server/gen/openapiv2/textclassification/v1/textclassification.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.