Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix content nullable across messages #140

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5717,7 +5717,6 @@ components:
title: System message
properties:
content:
nullable: true
description: The contents of the system message.
type: string
role:
Expand All @@ -5736,7 +5735,6 @@ components:
title: User message
properties:
content:
nullable: true
description: |
The contents of the user message.
oneOf:
Expand Down Expand Up @@ -5769,7 +5767,7 @@ components:
nullable: true
type: string
description: |
The contents of the assistant message.
The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
role:
type: string
enum: ["assistant"]
Expand All @@ -5794,7 +5792,6 @@ components:
- arguments
- name
required:
- content
- role

ChatCompletionRequestToolMessage:
Expand All @@ -5806,7 +5803,6 @@ components:
enum: ["tool"]
description: The role of the messages author, in this case `tool`.
content:
nullable: true
type: string
description: The contents of the tool message.
tool_call_id:
Expand All @@ -5827,7 +5823,6 @@ components:
enum: ["function"]
description: The role of the messages author, in this case `function`.
content:
nullable: true
type: string
description: The contents of the function message.
name:
Expand Down
Loading