Skip to content

Commit

Permalink
Merge pull request #276 from openai/dev/ryanliu/update_message_attach…
Browse files Browse the repository at this point in the history
…ments_spec

Update message attachment spec
  • Loading branch information
asdfryan authored Jun 7, 2024
2 parents c2fa626 + 4e97768 commit 33d5c27
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tags:
- name: Assistants
description: Build Assistants that can call models and use tools.
- name: Audio
description: Learn how to turn audio into text or text into audio.
description: Turn audio into text or text into audio.
- name: Chat
description: Given a list of messages comprising a conversation, the model will return a response.
- name: Completions
Expand Down Expand Up @@ -7692,9 +7692,9 @@ components:
required:
- type
- function

ParallelToolCalls:
description: Whether to enable [parallel function calling](/docs/guides/function-calling) during tool use.
description: Whether to enable [parallel function calling](/docs/guides/function-calling/parallel-function-calling) during tool use.
type: boolean
default: true

Expand Down Expand Up @@ -10257,6 +10257,17 @@ components:
required:
- type

AssistantToolsFileSearchTypeOnly:
type: object
title: FileSearch tool
properties:
type:
type: string
description: "The type of tool being defined: `file_search`"
enum: ["file_search"]
required:
- type

AssistantToolsFunction:
type: object
title: Function tool
Expand Down Expand Up @@ -11225,7 +11236,7 @@ components:
items:
oneOf:
- $ref: "#/components/schemas/AssistantToolsCode"
- $ref: "#/components/schemas/AssistantToolsFileSearch"
- $ref: "#/components/schemas/AssistantToolsFileSearchTypeOnly"
x-oaiExpandable: true
description: A list of files attached to the message, and the tools they were added to.
nullable: true
Expand Down Expand Up @@ -11370,7 +11381,7 @@ components:
items:
oneOf:
- $ref: "#/components/schemas/AssistantToolsCode"
- $ref: "#/components/schemas/AssistantToolsFileSearch"
- $ref: "#/components/schemas/AssistantToolsFileSearchTypeOnly"
x-oaiExpandable: true
description: A list of files attached to the message, and the tools they should be added to.
required:
Expand Down

0 comments on commit 33d5c27

Please sign in to comment.