Skip to content

Commit ce9f8d6

Browse files
committed
Align ChatCompletion message types to utilize ChatCompletionMessageParam
1 parent 2210262 commit ce9f8d6

1 file changed

Lines changed: 1 addition & 67 deletions

File tree

openapi.yaml

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,73 +1768,7 @@ components:
17681768
type: array
17691769
description: A list of messages comprising the conversation so far.
17701770
items:
1771-
type: object
1772-
properties:
1773-
role:
1774-
type: string
1775-
description: "The role of the messages author. Choice between: system, user, assistant, or tool."
1776-
enum:
1777-
- system
1778-
- user
1779-
- assistant
1780-
- tool
1781-
content:
1782-
description: The content of the message, which can either be a simple string or a structured format.
1783-
type: string
1784-
oneOf:
1785-
- type: string
1786-
description: A plain text message.
1787-
- type: array
1788-
description: A structured message with mixed content types.
1789-
items:
1790-
type: object
1791-
oneOf:
1792-
- type: object
1793-
properties:
1794-
type:
1795-
type: string
1796-
enum:
1797-
- text
1798-
text:
1799-
type: string
1800-
required:
1801-
- type
1802-
- text
1803-
- type: object
1804-
properties:
1805-
type:
1806-
type: string
1807-
enum:
1808-
- image_url
1809-
image_url:
1810-
type: object
1811-
properties:
1812-
url:
1813-
type: string
1814-
description: The URL of the image
1815-
required:
1816-
- url
1817-
- type: object
1818-
title: Video
1819-
properties:
1820-
type:
1821-
type: string
1822-
enum:
1823-
- video_url
1824-
video_url:
1825-
type: object
1826-
properties:
1827-
url:
1828-
type: string
1829-
description: The URL of the video
1830-
required:
1831-
- url
1832-
required:
1833-
- type
1834-
- video_url
1835-
required:
1836-
- role
1837-
- content
1771+
$ref: "#/components/schemas/ChatCompletionMessageParam"
18381772
model:
18391773
description: >
18401774
The name of the model to query.<br>

0 commit comments

Comments
 (0)