From 7052b47553a447514a493266d4c9caf0ba750cd2 Mon Sep 17 00:00:00 2001 From: Darren Cohen <39422044+dargilco@users.noreply.github.com> Date: Wed, 31 Jul 2024 13:44:46 -0700 Subject: [PATCH] Fixes --- specification/ai/ModelClient/client.tsp | 2 ++ .../GetChatCompletions_MaximumSet_Gen.json | 36 +++++++++---------- .../GetChatCompletions_MinimumSet_Gen.json | 16 ++++----- .../GetEmbeddings_MaximumSet_Gen.json | 16 ++++----- .../GetEmbeddings_MinimumSet_Gen.json | 12 +++---- .../GetImageEmbeddings_MaximumSet_Gen.json | 18 +++++----- .../GetImageEmbeddings_MinimumSet_Gen.json | 12 +++---- .../GetModelInfo_MaximumSet_Gen.json | 4 +-- .../GetModelInfo_MinimumSet_Gen.json | 4 +-- .../ModelClient/models/chat_completions.tsp | 3 ++ .../GetChatCompletions_MaximumSet_Gen.json | 36 +++++++++---------- .../GetChatCompletions_MinimumSet_Gen.json | 16 ++++----- .../GetEmbeddings_MaximumSet_Gen.json | 16 ++++----- .../GetEmbeddings_MinimumSet_Gen.json | 12 +++---- .../GetImageEmbeddings_MaximumSet_Gen.json | 18 +++++----- .../GetImageEmbeddings_MinimumSet_Gen.json | 12 +++---- .../examples/GetModelInfo_MaximumSet_Gen.json | 4 +-- .../examples/GetModelInfo_MinimumSet_Gen.json | 4 +-- .../preview/2024-05-01-preview/openapi.json | 4 +++ 19 files changed, 127 insertions(+), 118 deletions(-) diff --git a/specification/ai/ModelClient/client.tsp b/specification/ai/ModelClient/client.tsp index 8b324bc473d7..19ded68aaec1 100644 --- a/specification/ai/ModelClient/client.tsp +++ b/specification/ai/ModelClient/client.tsp @@ -25,6 +25,8 @@ namespace Customizations; // The actual name here doesn't matter and is here for @@access(AI.Model.ChatCompletionsNamedToolSelection, Access.public); @@access(AI.Model.ChatCompletionsFunctionToolSelection, Access.public); @@access(AI.Model.ChatCompletionsResponseFormat, Access.public); +@@access(AI.Model.ChatCompletionsResponseFormatJSON, Access.public); +@@access(AI.Model.ChatCompletionsResponseFormatText, Access.public); @@access(AI.Model.ChatCompletionsToolCall, Access.public); @@access(AI.Model.ChatCompletionsToolDefinition, Access.public); @@access(AI.Model.ChatCompletionsToolSelectionPreset, Access.public); diff --git a/specification/ai/ModelClient/examples/2024-05-01-preview/GetChatCompletions_MaximumSet_Gen.json b/specification/ai/ModelClient/examples/2024-05-01-preview/GetChatCompletions_MaximumSet_Gen.json index 38532f9cadcf..ac2f4481fe99 100644 --- a/specification/ai/ModelClient/examples/2024-05-01-preview/GetChatCompletions_MaximumSet_Gen.json +++ b/specification/ai/ModelClient/examples/2024-05-01-preview/GetChatCompletions_MaximumSet_Gen.json @@ -10,9 +10,9 @@ "role": "ChatRequestMessage" } ], - "frequency_penalty": 0, + "frequency_penalty": 1, "stream": true, - "presence_penalty": 0, + "presence_penalty": -1, "temperature": 0, "top_p": 0, "max_tokens": 0, @@ -20,47 +20,47 @@ "type": "ChatCompletionsResponseFormat" }, "stop": [ - "kodvfgvdeveyjajzhgiywjolk" + "mzmcfubofv" ], "tools": [ { "type": "function", "function": { - "name": "dvvmxwwwizffnvmelspghalpgitf", - "description": "evocwt", + "name": "ju", + "description": "ysuwjrgnnbotcurdvzoade", "parameters": {} } } ], - "seed": 25, - "model": "iezn" + "seed": 5, + "model": "c" } }, "responses": { "200": { "body": { - "id": "vtgwqaohn", - "created": 15, - "model": "qoqzxiwwpxoputj", + "id": "ranyivlrubzwazjibryqvjrg", + "created": 25, + "model": "nfldvjnmoxfwkqzuqkxbzbred", "usage": { - "completion_tokens": 20, - "prompt_tokens": 14, - "total_tokens": 19 + "completion_tokens": 18, + "prompt_tokens": 28, + "total_tokens": 5 }, "choices": [ { - "index": 12, + "index": 28, "finish_reason": "stop", "message": { "role": "system", - "content": "lyknnetfzfwkzohcnpm", + "content": "gjahropbocvhmlvoyitwihd", "tool_calls": [ { - "id": "guoqqduggmjcfnwkuwfbchljtyat", + "id": "ytt", "type": "function", "function": { - "name": "dvvmxwwwizffnvmelspghalpgitf", - "arguments": "cznrrqnbgf" + "name": "ju", + "arguments": "pbayscgxeazdbhvtmjqpzueyga" } } ] diff --git a/specification/ai/ModelClient/examples/2024-05-01-preview/GetChatCompletions_MinimumSet_Gen.json b/specification/ai/ModelClient/examples/2024-05-01-preview/GetChatCompletions_MinimumSet_Gen.json index 95329a0564c0..23ded94285a7 100644 --- a/specification/ai/ModelClient/examples/2024-05-01-preview/GetChatCompletions_MinimumSet_Gen.json +++ b/specification/ai/ModelClient/examples/2024-05-01-preview/GetChatCompletions_MinimumSet_Gen.json @@ -14,21 +14,21 @@ "responses": { "200": { "body": { - "id": "vtgwqaohn", - "created": 15, - "model": "qoqzxiwwpxoputj", + "id": "ranyivlrubzwazjibryqvjrg", + "created": 25, + "model": "nfldvjnmoxfwkqzuqkxbzbred", "usage": { - "completion_tokens": 20, - "prompt_tokens": 14, - "total_tokens": 19 + "completion_tokens": 18, + "prompt_tokens": 28, + "total_tokens": 5 }, "choices": [ { - "index": 12, + "index": 28, "finish_reason": "stop", "message": { "role": "system", - "content": "lyknnetfzfwkzohcnpm" + "content": "gjahropbocvhmlvoyitwihd" } } ] diff --git a/specification/ai/ModelClient/examples/2024-05-01-preview/GetEmbeddings_MaximumSet_Gen.json b/specification/ai/ModelClient/examples/2024-05-01-preview/GetEmbeddings_MaximumSet_Gen.json index 2e06eb6b8f6b..7539bc328776 100644 --- a/specification/ai/ModelClient/examples/2024-05-01-preview/GetEmbeddings_MaximumSet_Gen.json +++ b/specification/ai/ModelClient/examples/2024-05-01-preview/GetEmbeddings_MaximumSet_Gen.json @@ -6,31 +6,31 @@ "extra-parameters": "error", "body": { "input": [ - "jizdyle" + "nxehxxnjznyixf" ], - "dimensions": 22, + "dimensions": 3, "encoding_format": "base64", "input_type": "text", - "model": "nddvsjz" + "model": "zflys" } }, "responses": { "200": { "body": { - "id": "vionieqnhlphxavcx", + "id": "kmclubpbyrjjrcihu", "data": [ { "embedding": [ - 6 + 3 ], - "index": 14 + "index": 20 } ], "usage": { - "prompt_tokens": 20, + "prompt_tokens": 17, "total_tokens": 25 }, - "model": "ieciyihyttwmfe" + "model": "gg" } } } diff --git a/specification/ai/ModelClient/examples/2024-05-01-preview/GetEmbeddings_MinimumSet_Gen.json b/specification/ai/ModelClient/examples/2024-05-01-preview/GetEmbeddings_MinimumSet_Gen.json index 701276be8b7f..e3c32e0dbdfe 100644 --- a/specification/ai/ModelClient/examples/2024-05-01-preview/GetEmbeddings_MinimumSet_Gen.json +++ b/specification/ai/ModelClient/examples/2024-05-01-preview/GetEmbeddings_MinimumSet_Gen.json @@ -5,27 +5,27 @@ "api-version": "2024-05-01-preview", "body": { "input": [ - "scgp" + "ujbdzqgintkjjorqvgtyqxehwod" ] } }, "responses": { "200": { "body": { - "id": "vionieqnhlphxavcx", + "id": "kmclubpbyrjjrcihu", "data": [ { "embedding": [ - 6 + 3 ], - "index": 14 + "index": 20 } ], "usage": { - "prompt_tokens": 20, + "prompt_tokens": 17, "total_tokens": 25 }, - "model": "ieciyihyttwmfe" + "model": "gg" } } } diff --git a/specification/ai/ModelClient/examples/2024-05-01-preview/GetImageEmbeddings_MaximumSet_Gen.json b/specification/ai/ModelClient/examples/2024-05-01-preview/GetImageEmbeddings_MaximumSet_Gen.json index bd46d71e375a..c05438634727 100644 --- a/specification/ai/ModelClient/examples/2024-05-01-preview/GetImageEmbeddings_MaximumSet_Gen.json +++ b/specification/ai/ModelClient/examples/2024-05-01-preview/GetImageEmbeddings_MaximumSet_Gen.json @@ -7,33 +7,33 @@ "body": { "input": [ { - "image": "ezdcmifjtdbrcbgnqytppc", - "text": "ryxmjwpedcy" + "image": "gvmojtfooxixxzayrditjlyymg", + "text": "iujicnoralolceytmoeabhftpevhh" } ], - "dimensions": 17, + "dimensions": 30, "encoding_format": "base64", "input_type": "text", - "model": "cwpakajnobxvxijobxq" + "model": "uptjbssrfitjnhlfqddnsabu" } }, "responses": { "200": { "body": { - "id": "vionieqnhlphxavcx", + "id": "kmclubpbyrjjrcihu", "data": [ { "embedding": [ - 6 + 3 ], - "index": 14 + "index": 20 } ], "usage": { - "prompt_tokens": 20, + "prompt_tokens": 17, "total_tokens": 25 }, - "model": "ieciyihyttwmfe" + "model": "gg" } } } diff --git a/specification/ai/ModelClient/examples/2024-05-01-preview/GetImageEmbeddings_MinimumSet_Gen.json b/specification/ai/ModelClient/examples/2024-05-01-preview/GetImageEmbeddings_MinimumSet_Gen.json index 1300523b37f7..4ea5e30e4246 100644 --- a/specification/ai/ModelClient/examples/2024-05-01-preview/GetImageEmbeddings_MinimumSet_Gen.json +++ b/specification/ai/ModelClient/examples/2024-05-01-preview/GetImageEmbeddings_MinimumSet_Gen.json @@ -6,7 +6,7 @@ "body": { "input": [ { - "image": "ezdcmifjtdbrcbgnqytppc" + "image": "gvmojtfooxixxzayrditjlyymg" } ] } @@ -14,20 +14,20 @@ "responses": { "200": { "body": { - "id": "vionieqnhlphxavcx", + "id": "kmclubpbyrjjrcihu", "data": [ { "embedding": [ - 6 + 3 ], - "index": 14 + "index": 20 } ], "usage": { - "prompt_tokens": 20, + "prompt_tokens": 17, "total_tokens": 25 }, - "model": "ieciyihyttwmfe" + "model": "gg" } } } diff --git a/specification/ai/ModelClient/examples/2024-05-01-preview/GetModelInfo_MaximumSet_Gen.json b/specification/ai/ModelClient/examples/2024-05-01-preview/GetModelInfo_MaximumSet_Gen.json index ee7b7de2a8ca..f6dda3ea591f 100644 --- a/specification/ai/ModelClient/examples/2024-05-01-preview/GetModelInfo_MaximumSet_Gen.json +++ b/specification/ai/ModelClient/examples/2024-05-01-preview/GetModelInfo_MaximumSet_Gen.json @@ -7,9 +7,9 @@ "responses": { "200": { "body": { - "model_name": "ojuagnemgirsmgxmqbkppwiu", + "model_name": "ay", "model_type": "embeddings", - "model_provider_name": "c" + "model_provider_name": "wgjopneqzhgrzsgskwcojdpwlmu" } } } diff --git a/specification/ai/ModelClient/examples/2024-05-01-preview/GetModelInfo_MinimumSet_Gen.json b/specification/ai/ModelClient/examples/2024-05-01-preview/GetModelInfo_MinimumSet_Gen.json index f9f4a35a9d52..ae0cc6c50914 100644 --- a/specification/ai/ModelClient/examples/2024-05-01-preview/GetModelInfo_MinimumSet_Gen.json +++ b/specification/ai/ModelClient/examples/2024-05-01-preview/GetModelInfo_MinimumSet_Gen.json @@ -7,9 +7,9 @@ "responses": { "200": { "body": { - "model_name": "ojuagnemgirsmgxmqbkppwiu", + "model_name": "ay", "model_type": "embeddings", - "model_provider_name": "c" + "model_provider_name": "wgjopneqzhgrzsgskwcojdpwlmu" } } } diff --git a/specification/ai/ModelClient/models/chat_completions.tsp b/specification/ai/ModelClient/models/chat_completions.tsp index a75cbcb5b63c..7d12fd9f52b8 100644 --- a/specification/ai/ModelClient/models/chat_completions.tsp +++ b/specification/ai/ModelClient/models/chat_completions.tsp @@ -357,6 +357,9 @@ model ChatRequestToolMessage extends ChatRequestMessage { @doc("A representation of a chat message update as received in a streaming response.") model StreamingChatResponseMessageUpdate { + @doc("The chat role associated with the message. If present, should always be 'assistant'") + role?: ChatRole; + //#suppress "@azure-tools/typespec-azure-core/no-nullable" "explicitly nullable in mirrored API" @doc("The content of the message.") content?: string; diff --git a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetChatCompletions_MaximumSet_Gen.json b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetChatCompletions_MaximumSet_Gen.json index 38532f9cadcf..ac2f4481fe99 100644 --- a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetChatCompletions_MaximumSet_Gen.json +++ b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetChatCompletions_MaximumSet_Gen.json @@ -10,9 +10,9 @@ "role": "ChatRequestMessage" } ], - "frequency_penalty": 0, + "frequency_penalty": 1, "stream": true, - "presence_penalty": 0, + "presence_penalty": -1, "temperature": 0, "top_p": 0, "max_tokens": 0, @@ -20,47 +20,47 @@ "type": "ChatCompletionsResponseFormat" }, "stop": [ - "kodvfgvdeveyjajzhgiywjolk" + "mzmcfubofv" ], "tools": [ { "type": "function", "function": { - "name": "dvvmxwwwizffnvmelspghalpgitf", - "description": "evocwt", + "name": "ju", + "description": "ysuwjrgnnbotcurdvzoade", "parameters": {} } } ], - "seed": 25, - "model": "iezn" + "seed": 5, + "model": "c" } }, "responses": { "200": { "body": { - "id": "vtgwqaohn", - "created": 15, - "model": "qoqzxiwwpxoputj", + "id": "ranyivlrubzwazjibryqvjrg", + "created": 25, + "model": "nfldvjnmoxfwkqzuqkxbzbred", "usage": { - "completion_tokens": 20, - "prompt_tokens": 14, - "total_tokens": 19 + "completion_tokens": 18, + "prompt_tokens": 28, + "total_tokens": 5 }, "choices": [ { - "index": 12, + "index": 28, "finish_reason": "stop", "message": { "role": "system", - "content": "lyknnetfzfwkzohcnpm", + "content": "gjahropbocvhmlvoyitwihd", "tool_calls": [ { - "id": "guoqqduggmjcfnwkuwfbchljtyat", + "id": "ytt", "type": "function", "function": { - "name": "dvvmxwwwizffnvmelspghalpgitf", - "arguments": "cznrrqnbgf" + "name": "ju", + "arguments": "pbayscgxeazdbhvtmjqpzueyga" } } ] diff --git a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetChatCompletions_MinimumSet_Gen.json b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetChatCompletions_MinimumSet_Gen.json index 95329a0564c0..23ded94285a7 100644 --- a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetChatCompletions_MinimumSet_Gen.json +++ b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetChatCompletions_MinimumSet_Gen.json @@ -14,21 +14,21 @@ "responses": { "200": { "body": { - "id": "vtgwqaohn", - "created": 15, - "model": "qoqzxiwwpxoputj", + "id": "ranyivlrubzwazjibryqvjrg", + "created": 25, + "model": "nfldvjnmoxfwkqzuqkxbzbred", "usage": { - "completion_tokens": 20, - "prompt_tokens": 14, - "total_tokens": 19 + "completion_tokens": 18, + "prompt_tokens": 28, + "total_tokens": 5 }, "choices": [ { - "index": 12, + "index": 28, "finish_reason": "stop", "message": { "role": "system", - "content": "lyknnetfzfwkzohcnpm" + "content": "gjahropbocvhmlvoyitwihd" } } ] diff --git a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetEmbeddings_MaximumSet_Gen.json b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetEmbeddings_MaximumSet_Gen.json index 2e06eb6b8f6b..7539bc328776 100644 --- a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetEmbeddings_MaximumSet_Gen.json +++ b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetEmbeddings_MaximumSet_Gen.json @@ -6,31 +6,31 @@ "extra-parameters": "error", "body": { "input": [ - "jizdyle" + "nxehxxnjznyixf" ], - "dimensions": 22, + "dimensions": 3, "encoding_format": "base64", "input_type": "text", - "model": "nddvsjz" + "model": "zflys" } }, "responses": { "200": { "body": { - "id": "vionieqnhlphxavcx", + "id": "kmclubpbyrjjrcihu", "data": [ { "embedding": [ - 6 + 3 ], - "index": 14 + "index": 20 } ], "usage": { - "prompt_tokens": 20, + "prompt_tokens": 17, "total_tokens": 25 }, - "model": "ieciyihyttwmfe" + "model": "gg" } } } diff --git a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetEmbeddings_MinimumSet_Gen.json b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetEmbeddings_MinimumSet_Gen.json index 701276be8b7f..e3c32e0dbdfe 100644 --- a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetEmbeddings_MinimumSet_Gen.json +++ b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetEmbeddings_MinimumSet_Gen.json @@ -5,27 +5,27 @@ "api-version": "2024-05-01-preview", "body": { "input": [ - "scgp" + "ujbdzqgintkjjorqvgtyqxehwod" ] } }, "responses": { "200": { "body": { - "id": "vionieqnhlphxavcx", + "id": "kmclubpbyrjjrcihu", "data": [ { "embedding": [ - 6 + 3 ], - "index": 14 + "index": 20 } ], "usage": { - "prompt_tokens": 20, + "prompt_tokens": 17, "total_tokens": 25 }, - "model": "ieciyihyttwmfe" + "model": "gg" } } } diff --git a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetImageEmbeddings_MaximumSet_Gen.json b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetImageEmbeddings_MaximumSet_Gen.json index bd46d71e375a..c05438634727 100644 --- a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetImageEmbeddings_MaximumSet_Gen.json +++ b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetImageEmbeddings_MaximumSet_Gen.json @@ -7,33 +7,33 @@ "body": { "input": [ { - "image": "ezdcmifjtdbrcbgnqytppc", - "text": "ryxmjwpedcy" + "image": "gvmojtfooxixxzayrditjlyymg", + "text": "iujicnoralolceytmoeabhftpevhh" } ], - "dimensions": 17, + "dimensions": 30, "encoding_format": "base64", "input_type": "text", - "model": "cwpakajnobxvxijobxq" + "model": "uptjbssrfitjnhlfqddnsabu" } }, "responses": { "200": { "body": { - "id": "vionieqnhlphxavcx", + "id": "kmclubpbyrjjrcihu", "data": [ { "embedding": [ - 6 + 3 ], - "index": 14 + "index": 20 } ], "usage": { - "prompt_tokens": 20, + "prompt_tokens": 17, "total_tokens": 25 }, - "model": "ieciyihyttwmfe" + "model": "gg" } } } diff --git a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetImageEmbeddings_MinimumSet_Gen.json b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetImageEmbeddings_MinimumSet_Gen.json index 1300523b37f7..4ea5e30e4246 100644 --- a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetImageEmbeddings_MinimumSet_Gen.json +++ b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetImageEmbeddings_MinimumSet_Gen.json @@ -6,7 +6,7 @@ "body": { "input": [ { - "image": "ezdcmifjtdbrcbgnqytppc" + "image": "gvmojtfooxixxzayrditjlyymg" } ] } @@ -14,20 +14,20 @@ "responses": { "200": { "body": { - "id": "vionieqnhlphxavcx", + "id": "kmclubpbyrjjrcihu", "data": [ { "embedding": [ - 6 + 3 ], - "index": 14 + "index": 20 } ], "usage": { - "prompt_tokens": 20, + "prompt_tokens": 17, "total_tokens": 25 }, - "model": "ieciyihyttwmfe" + "model": "gg" } } } diff --git a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetModelInfo_MaximumSet_Gen.json b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetModelInfo_MaximumSet_Gen.json index ee7b7de2a8ca..f6dda3ea591f 100644 --- a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetModelInfo_MaximumSet_Gen.json +++ b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetModelInfo_MaximumSet_Gen.json @@ -7,9 +7,9 @@ "responses": { "200": { "body": { - "model_name": "ojuagnemgirsmgxmqbkppwiu", + "model_name": "ay", "model_type": "embeddings", - "model_provider_name": "c" + "model_provider_name": "wgjopneqzhgrzsgskwcojdpwlmu" } } } diff --git a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetModelInfo_MinimumSet_Gen.json b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetModelInfo_MinimumSet_Gen.json index f9f4a35a9d52..ae0cc6c50914 100644 --- a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetModelInfo_MinimumSet_Gen.json +++ b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/examples/GetModelInfo_MinimumSet_Gen.json @@ -7,9 +7,9 @@ "responses": { "200": { "body": { - "model_name": "ojuagnemgirsmgxmqbkppwiu", + "model_name": "ay", "model_type": "embeddings", - "model_provider_name": "c" + "model_provider_name": "wgjopneqzhgrzsgskwcojdpwlmu" } } } diff --git a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/openapi.json b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/openapi.json index 8520a4759179..fe436b393cac 100644 --- a/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/openapi.json +++ b/specification/ai/data-plane/AI.Model/preview/2024-05-01-preview/openapi.json @@ -1466,6 +1466,10 @@ "type": "object", "description": "A representation of a chat message update as received in a streaming response.", "properties": { + "role": { + "$ref": "#/definitions/ChatRole", + "description": "The chat role associated with the message. If present, should always be 'assistant'" + }, "content": { "type": "string", "description": "The content of the message."