Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
003eaec0
Unverified
Commit
003eaec0
authored
Nov 15, 2024
by
jito
Committed by
GitHub
Nov 15, 2024
Browse files
fix response type of document for Text Generation Inference (#2743)
Signed-off-by:
jitokim
<
pigberger70@gmail.com
>
parent
4f4857a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
docs/openapi.json
docs/openapi.json
+4
-1
router/src/server.rs
router/src/server.rs
+1
-1
No files found.
docs/openapi.json
View file @
003eaec0
...
@@ -36,8 +36,11 @@
...
@@ -36,8 +36,11 @@
"content"
:
{
"content"
:
{
"application/json"
:
{
"application/json"
:
{
"schema"
:
{
"schema"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/components/schemas/GenerateResponse"
"$ref"
:
"#/components/schemas/GenerateResponse"
}
}
}
},
},
"text/event-stream"
:
{
"text/event-stream"
:
{
"schema"
:
{
"schema"
:
{
...
...
router/src/server.rs
View file @
003eaec0
...
@@ -109,7 +109,7 @@ request_body = CompatGenerateRequest,
...
@@ -109,7 +109,7 @@ request_body = CompatGenerateRequest,
responses(
responses(
(status
=
200
,
description
=
"Generated Text"
,
(status
=
200
,
description
=
"Generated Text"
,
content(
content(
(
"application/json"
=
GenerateResponse),
(
"application/json"
=
Vec
<
GenerateResponse
>
),
(
"text/event-stream"
=
StreamResponse),
(
"text/event-stream"
=
StreamResponse),
)),
)),
(status
=
424
,
description
=
"Generation Error"
,
body
=
ErrorResponse,
(status
=
424
,
description
=
"Generation Error"
,
body
=
ErrorResponse,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment