Skip to content

Commit

Permalink
Fix content nullable across messages
Browse files Browse the repository at this point in the history
  • Loading branch information
athyuttamre committed Dec 12, 2023
1 parent f2bc171 commit 94a9434
Showing 1 changed file with 1 addition and 6 deletions.
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

0 comments on commit 94a9434

Please sign in to comment.