Skip to content

Commit 33d5c27

Browse files
authored
Merge pull request #276 from openai/dev/ryanliu/update_message_attachments_spec
Update message attachment spec
2 parents c2fa626 + 4e97768 commit 33d5c27

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

openapi.yaml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tags:
1616
- name: Assistants
1717
description: Build Assistants that can call models and use tools.
1818
- name: Audio
19-
description: Learn how to turn audio into text or text into audio.
19+
description: Turn audio into text or text into audio.
2020
- name: Chat
2121
description: Given a list of messages comprising a conversation, the model will return a response.
2222
- name: Completions
@@ -7692,9 +7692,9 @@ components:
76927692
required:
76937693
- type
76947694
- function
7695-
7695+
76967696
ParallelToolCalls:
7697-
description: Whether to enable [parallel function calling](/docs/guides/function-calling) during tool use.
7697+
description: Whether to enable [parallel function calling](/docs/guides/function-calling/parallel-function-calling) during tool use.
76987698
type: boolean
76997699
default: true
77007700

@@ -10257,6 +10257,17 @@ components:
1025710257
required:
1025810258
- type
1025910259

10260+
AssistantToolsFileSearchTypeOnly:
10261+
type: object
10262+
title: FileSearch tool
10263+
properties:
10264+
type:
10265+
type: string
10266+
description: "The type of tool being defined: `file_search`"
10267+
enum: ["file_search"]
10268+
required:
10269+
- type
10270+
1026010271
AssistantToolsFunction:
1026110272
type: object
1026210273
title: Function tool
@@ -11225,7 +11236,7 @@ components:
1122511236
items:
1122611237
oneOf:
1122711238
- $ref: "#/components/schemas/AssistantToolsCode"
11228-
- $ref: "#/components/schemas/AssistantToolsFileSearch"
11239+
- $ref: "#/components/schemas/AssistantToolsFileSearchTypeOnly"
1122911240
x-oaiExpandable: true
1123011241
description: A list of files attached to the message, and the tools they were added to.
1123111242
nullable: true
@@ -11370,7 +11381,7 @@ components:
1137011381
items:
1137111382
oneOf:
1137211383
- $ref: "#/components/schemas/AssistantToolsCode"
11373-
- $ref: "#/components/schemas/AssistantToolsFileSearch"
11384+
- $ref: "#/components/schemas/AssistantToolsFileSearchTypeOnly"
1137411385
x-oaiExpandable: true
1137511386
description: A list of files attached to the message, and the tools they should be added to.
1137611387
required:

0 commit comments

Comments
 (0)