You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use "assistants" for [Assistants](/docs/api-reference/assistants) and [Messages](/docs/api-reference/messages), "batch" for [Batch API](/docs/guides/batch), and "fine-tune" for [Fine-tuning](/docs/api-reference/fine-tuning).
8595
+
Use "assistants" for [Assistants](/docs/api-reference/assistants) and [Message](/docs/api-reference/messages) files, "vision" for Assistants image file inputs, "batch" for [Batch API](/docs/guides/batch), and "fine-tune" for [Fine-tuning](/docs/api-reference/fine-tuning).
8596
8596
type: string
8597
8597
enum: ["assistants", "batch", "fine-tune"]
8598
8598
required:
@@ -9225,7 +9225,7 @@ components:
9225
9225
enum: ["file"]
9226
9226
purpose:
9227
9227
type: string
9228
-
description: The intended purpose of the file. Supported values are `assistants`, `assistants_output`, `batch`, `batch_output`, `fine-tune`, and `fine-tune-results`.
9228
+
description: The intended purpose of the file. Supported values are `assistants`, `assistants_output`, `batch`, `batch_output`, `fine-tune`, `fine-tune-results` and `vision`.
- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.
11101
11103
- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.
11102
11104
content:
11103
-
type: string
11104
-
minLength: 1
11105
-
maxLength: 256000
11106
-
description: The content of the message.
11105
+
oneOf:
11106
+
- type: string
11107
+
description: The text contents of the message.
11108
+
title: Text content
11109
+
- type: array
11110
+
description: An array of content parts with a defined type, each can be of type `text` or images can be passed with `image_url` or `image_file`. Image types are only supported on [Vision-compatible models](/docs/models/overview).
description: The [File](/docs/api-reference/files) ID of the image in the message content.
11210
+
description: The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content.
11198
11211
type: string
11212
+
detail:
11213
+
type: string
11214
+
description: Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.
11215
+
enum: ["auto", "low", "high"]
11216
+
default: "auto"
11199
11217
required:
11200
11218
- file_id
11201
11219
required:
@@ -11218,8 +11236,67 @@ components:
11218
11236
type: object
11219
11237
properties:
11220
11238
file_id:
11221
-
description: The [File](/docs/api-reference/files) ID of the image in the message content.
11239
+
description: The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose="vision"` when uploading the File if you need to later display the file content.
11240
+
type: string
11241
+
detail:
11222
11242
type: string
11243
+
description: Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`.
11244
+
enum: ["auto", "low", "high"]
11245
+
default: "auto"
11246
+
required:
11247
+
- index
11248
+
- type
11249
+
11250
+
MessageContentImageUrlObject:
11251
+
title: Image URL
11252
+
type: object
11253
+
description: References an image URL in the content of a message.
11254
+
properties:
11255
+
type:
11256
+
type: string
11257
+
enum: ["image_url"]
11258
+
description: The type of the content part.
11259
+
image_url:
11260
+
type: object
11261
+
properties:
11262
+
url:
11263
+
type: string
11264
+
description: "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp."
11265
+
format: uri
11266
+
detail:
11267
+
type: string
11268
+
description: Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`
11269
+
enum: ["auto", "low", "high"]
11270
+
default: "auto"
11271
+
required:
11272
+
- url
11273
+
required:
11274
+
- type
11275
+
- image_url
11276
+
11277
+
MessageDeltaContentImageUrlObject:
11278
+
title: Image URL
11279
+
type: object
11280
+
description: References an image URL in the content of a message.
11281
+
properties:
11282
+
index:
11283
+
type: integer
11284
+
description: The index of the content part in the message.
11285
+
type:
11286
+
description: Always `image_url`.
11287
+
type: string
11288
+
enum: ["image_url"]
11289
+
image_url:
11290
+
type: object
11291
+
properties:
11292
+
url:
11293
+
description: "The URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp."
11294
+
type: string
11295
+
detail:
11296
+
type: string
11297
+
description: Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`.
11298
+
enum: ["auto", "low", "high"]
11299
+
default: "auto"
11223
11300
required:
11224
11301
- index
11225
11302
- type
@@ -11253,6 +11330,22 @@ components:
11253
11330
- type
11254
11331
- text
11255
11332
11333
+
MessageRequestContentTextObject:
11334
+
title: Text
11335
+
type: object
11336
+
description: The text content that is part of a message.
0 commit comments