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
3b03c4ea
Unverified
Commit
3b03c4ea
authored
Feb 24, 2023
by
OlivierDehaene
Committed by
GitHub
Feb 24, 2023
Browse files
fix(docs): fix openapi schema (#86)
parent
0ac184ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
3 deletions
+33
-3
docs/openapi.json
docs/openapi.json
+33
-3
No files found.
docs/openapi.json
View file @
3b03c4ea
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"name"
:
"Apache 2.0"
,
"name"
:
"Apache 2.0"
,
"url"
:
"https://www.apache.org/licenses/LICENSE-2.0"
"url"
:
"https://www.apache.org/licenses/LICENSE-2.0"
},
},
"version"
:
"0.3.
0
"
"version"
:
"0.3.
1
"
},
},
"paths"
:
{
"paths"
:
{
"/generate"
:
{
"/generate"
:
{
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
"prefill"
:
{
"prefill"
:
{
"type"
:
"array"
,
"type"
:
"array"
,
"items"
:
{
"items"
:
{
"$ref"
:
"#/components/schemas/Token"
"$ref"
:
"#/components/schemas/
Prefill
Token"
}
}
},
},
"seed"
:
{
"seed"
:
{
...
@@ -361,6 +361,31 @@
...
@@ -361,6 +361,31 @@
}
}
}
}
},
},
"PrefillToken"
:
{
"type"
:
"object"
,
"required"
:
[
"id"
,
"text"
,
"logprob"
],
"properties"
:
{
"id"
:
{
"type"
:
"integer"
,
"format"
:
"int32"
,
"example"
:
0
},
"logprob"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"example"
:
-0.34
,
"nullable"
:
true
},
"text"
:
{
"type"
:
"string"
,
"example"
:
"test"
}
}
},
"StreamDetails"
:
{
"StreamDetails"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"required"
:
[
"required"
:
[
...
@@ -408,7 +433,8 @@
...
@@ -408,7 +433,8 @@
"required"
:
[
"required"
:
[
"id"
,
"id"
,
"text"
,
"text"
,
"logprob"
"logprob"
,
"special"
],
],
"properties"
:
{
"properties"
:
{
"id"
:
{
"id"
:
{
...
@@ -422,6 +448,10 @@
...
@@ -422,6 +448,10 @@
"example"
:
-0.34
,
"example"
:
-0.34
,
"nullable"
:
true
"nullable"
:
true
},
},
"special"
:
{
"type"
:
"boolean"
,
"example"
:
"false"
},
"text"
:
{
"text"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
"example"
:
"test"
"example"
:
"test"
...
...
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