Skip to content

Commit 2e159fa

Browse files
authored
Merge pull request #90 from togethercomputer/fix-chat-completion-types
Align ChatCompletion message types to utilize `ChatCompletionMessageParam`
2 parents 406067e + ce9f8d6 commit 2e159fa

File tree

1 file changed

+1
-67
lines changed

1 file changed

+1
-67
lines changed

openapi.yaml

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,73 +1786,7 @@ components:
17861786
type: array
17871787
description: A list of messages comprising the conversation so far.
17881788
items:
1789-
type: object
1790-
properties:
1791-
role:
1792-
type: string
1793-
description: "The role of the messages author. Choice between: system, user, assistant, or tool."
1794-
enum:
1795-
- system
1796-
- user
1797-
- assistant
1798-
- tool
1799-
content:
1800-
description: The content of the message, which can either be a simple string or a structured format.
1801-
type: string
1802-
oneOf:
1803-
- type: string
1804-
description: A plain text message.
1805-
- type: array
1806-
description: A structured message with mixed content types.
1807-
items:
1808-
type: object
1809-
oneOf:
1810-
- type: object
1811-
properties:
1812-
type:
1813-
type: string
1814-
enum:
1815-
- text
1816-
text:
1817-
type: string
1818-
required:
1819-
- type
1820-
- text
1821-
- type: object
1822-
properties:
1823-
type:
1824-
type: string
1825-
enum:
1826-
- image_url
1827-
image_url:
1828-
type: object
1829-
properties:
1830-
url:
1831-
type: string
1832-
description: The URL of the image
1833-
required:
1834-
- url
1835-
- type: object
1836-
title: Video
1837-
properties:
1838-
type:
1839-
type: string
1840-
enum:
1841-
- video_url
1842-
video_url:
1843-
type: object
1844-
properties:
1845-
url:
1846-
type: string
1847-
description: The URL of the video
1848-
required:
1849-
- url
1850-
required:
1851-
- type
1852-
- video_url
1853-
required:
1854-
- role
1855-
- content
1789+
$ref: "#/components/schemas/ChatCompletionMessageParam"
18561790
model:
18571791
description: >
18581792
The name of the model to query.<br>

0 commit comments

Comments
 (0)