File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1965,14 +1965,85 @@ components:
19651965 required : [content, role]
19661966 properties :
19671967 content :
1968- type : string
1969- # TODO: more comple content?
1968+ $ref : ' #/components/schemas/ChatCompletionMixedContent'
19701969 role :
19711970 type : string
19721971 enum : ['user']
19731972 name :
19741973 type : string
19751974
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+
19762047 ChatCompletionAssistantMessageParam :
19772048 type : object
19782049 required : [role]
You can’t perform that action at this time.
0 commit comments