From 5500816c687d16a61dc096d09766d452413f59dd Mon Sep 17 00:00:00 2001 From: Hassan El Mghari Date: Wed, 27 Nov 2024 11:58:37 -0500 Subject: [PATCH] done --- openapi.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index ed27feb..1a87057 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1143,6 +1143,42 @@ components: content: description: The content of the message, which can either be a simple string or a structured format. type: string + oneOf: + - type: string + description: A plain text message. + - type: array + description: A structured message with mixed content types. + items: + type: object + oneOf: + - type: object + properties: + type: + type: string + enum: + - text + text: + type: string + required: + - type + - text + - type: object + properties: + type: + type: string + enum: + - image_url + image_url: + type: object + properties: + url: + type: string + description: The URL of the image as a plain string. + required: + - url + required: + - type + - image_url required: - role - content