docs: format .yaml

This commit is contained in:
hieu-jan 2024-01-24 10:55:24 +09:00
parent 45c08597fe
commit b4ffe006fe
5 changed files with 15 additions and 10 deletions

View File

@ -316,4 +316,4 @@ components:
deleted: deleted:
type: boolean type: boolean
description: Indicates whether the assistant was successfully deleted. description: Indicates whether the assistant was successfully deleted.
example: true example: true

View File

@ -16,7 +16,8 @@ components:
stream: stream:
type: boolean type: boolean
default: true default: true
description: Enables continuous output generation, allowing for streaming of description:
Enables continuous output generation, allowing for streaming of
model responses. model responses.
model: model:
type: string type: string
@ -25,23 +26,27 @@ components:
max_tokens: max_tokens:
type: number type: number
default: 2048 default: 2048
description: The maximum number of tokens the model will generate in a single description:
The maximum number of tokens the model will generate in a single
response. response.
stop: stop:
type: arrays type: arrays
example: example:
- hello - hello
description: Defines specific tokens or phrases at which the model will stop description:
Defines specific tokens or phrases at which the model will stop
generating further output/ generating further output/
frequency_penalty: frequency_penalty:
type: number type: number
default: 0 default: 0
description: Adjusts the likelihood of the model repeating words or phrases in description:
Adjusts the likelihood of the model repeating words or phrases in
its output. its output.
presence_penalty: presence_penalty:
type: number type: number
default: 0 default: 0
description: Influences the generation of new and varied concepts in the model's description:
Influences the generation of new and varied concepts in the model's
output. output.
temperature: temperature:
type: number type: number
@ -188,4 +193,4 @@ components:
total_tokens: total_tokens:
type: integer type: integer
example: 533 example: 533
description: Total number of tokens used description: Total number of tokens used

View File

@ -309,4 +309,4 @@ components:
data: data:
type: array type: array
items: items:
$ref: "#/components/schemas/MessageFileObject" $ref: "#/components/schemas/MessageFileObject"

View File

@ -96,7 +96,7 @@ components:
type: string type: string
description: | description: |
The identifier of the model. The identifier of the model.
example: ztrinity-v1.2-7b example: trinity-v1.2-7b
object: object:
type: string type: string
description: | description: |

View File

@ -224,4 +224,4 @@ components:
deleted: deleted:
type: boolean type: boolean
description: Indicates whether the thread was successfully deleted. description: Indicates whether the thread was successfully deleted.
example: true example: true