Skip to content

Commit c4db7f7

Browse files
committed
Restore nested params to reduce incoming changes
1 parent a5fb0e5 commit c4db7f7

1 file changed

Lines changed: 53 additions & 74 deletions

File tree

openapi.yaml

Lines changed: 53 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1965,85 +1965,64 @@ components:
19651965
required: [content, role]
19661966
properties:
19671967
content:
1968-
$ref: '#/components/schemas/ChatCompletionMixedContent'
1968+
description: The content of the message, which can either be a simple string or a structured format.
1969+
oneOf:
1970+
- type: string
1971+
description: A plain text message.
1972+
- type: array
1973+
description: A structured message with mixed content types.
1974+
items:
1975+
type: object
1976+
oneOf:
1977+
- type: object
1978+
properties:
1979+
type:
1980+
type: string
1981+
enum:
1982+
- text
1983+
text:
1984+
type: string
1985+
required:
1986+
- type
1987+
- text
1988+
- type: object
1989+
properties:
1990+
type:
1991+
type: string
1992+
enum:
1993+
- image_url
1994+
image_url:
1995+
type: object
1996+
properties:
1997+
url:
1998+
type: string
1999+
description: The URL of the image
2000+
required:
2001+
- url
2002+
- type: object
2003+
title: Video
2004+
properties:
2005+
type:
2006+
type: string
2007+
enum:
2008+
- video_url
2009+
video_url:
2010+
type: object
2011+
properties:
2012+
url:
2013+
type: string
2014+
description: The URL of the video
2015+
required:
2016+
- url
2017+
required:
2018+
- type
2019+
- video_url
19692020
role:
19702021
type: string
19712022
enum: ['user']
19722023
name:
19732024
type: string
1974-
1975-
ChatCompletionMixedContent:
1976-
description: The content of the message, which can either be a simple string or a structured format.
1977-
oneOf:
1978-
- $ref: '#/components/schemas/ChatCompletionContentText'
1979-
- $ref: '#/components/schemas/ChatCompletionContentArray'
1980-
1981-
ChatCompletionContentText:
1982-
type: string
1983-
description: A plain text message.
1984-
1985-
ChatCompletionContentArray:
1986-
type: array
1987-
description: A structured message with mixed content types.
1988-
items:
1989-
$ref: '#/components/schemas/ChatCompletionContentItem'
1990-
1991-
ChatCompletionContentItem:
1992-
type: object
1993-
oneOf:
1994-
- $ref: '#/components/schemas/ChatCompletionContentItemText'
1995-
- $ref: '#/components/schemas/ChatCompletionContentItemImageUrl'
1996-
- $ref: '#/components/schemas/ChatCompletionContentItemVideoUrl'
1997-
1998-
ChatCompletionContentItemText:
1999-
type: object
2000-
properties:
2001-
type:
2002-
type: string
2003-
enum:
2004-
- text
2005-
text:
2006-
type: string
2007-
required:
2008-
- type
2009-
- text
2010-
2011-
ChatCompletionContentItemImageUrl:
2012-
type: object
2013-
properties:
2014-
type:
2015-
type: string
2016-
enum:
2017-
- image_url
2018-
image_url:
2019-
type: object
2020-
properties:
2021-
url:
2022-
type: string
2023-
description: The URL of the image
2024-
required:
2025-
- url
2026-
2027-
ChatCompletionContentItemVideoUrl:
2028-
type: object
2029-
title: Video
2030-
properties:
2031-
type:
2032-
type: string
2033-
enum:
2034-
- video_url
2035-
video_url:
2036-
type: object
2037-
properties:
2038-
url:
2039-
type: string
2040-
description: The URL of the video
2041-
required:
2042-
- url
2043-
required:
2044-
- type
2045-
- video_url
2046-
2025+
20472026
ChatCompletionAssistantMessageParam:
20482027
type: object
20492028
required: [role]

0 commit comments

Comments
 (0)