LocalAI/openai-openapi/test_segment.yml
2023-05-20 18:29:54 -04:00

30 lines
No EOL
1 KiB
YAML

#! This file is just for my reference during development and will be removed.
components:
schemas:
CreateChatCompletionRequest:
type: object
properties:
model:
description: ID of the model to use. Currently, only `gpt-3.5-turbo` and `gpt-3.5-turbo-0301` are supported.
type: string
messages:
description: The messages to generate chat completions for, in the [chat format](/docs/guides/chat/introduction).
type: array
minItems: 1
items:
$ref: '#/components/schemas/ChatCompletionRequestMessage'
temperature:
type: number
minimum: 0
maximum: 2
default: 1
example: 1
nullable: true
description: *completions_temperature_description
CreateImageRequest:
type: object
properties:
prompt:
description: A text description of the desired image(s). The maximum length is 1000 characters.
type: string
example: "A cute baby sea otter"