Skip to content

Commit

Permalink
Merge pull request openai#140 from openai/dev/att/fn-content-nullable
Browse files Browse the repository at this point in the history
Fix content nullable across messages
  • Loading branch information
athyuttamre committed Dec 13, 2023
2 parents 895b625 + 94a9434 commit 5fa0158
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 5fa0158

Please sign in to comment.