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
"content":"Yes, other Azure AI services also support customer managed keys. Azure AI services offer multiple options for customers to manage keys, such as using Azure Key Vault, customer-managed keys in Azure Key Vault or customer-managed keys through Azure Storage service. This helps customers ensure that their data is secure and access to their services is controlled."},"finish_reason":"stop","index":0}]}
254
+
{
255
+
"id": "chatcmpl-6v7mkQj980V1yBec6ETrKPRqFjNw9",
256
+
"object": "chat.completion",
257
+
"created": 1679072642,
258
+
"model": "gpt-35-turbo",
259
+
"usage":
260
+
{
261
+
"prompt_tokens": 58,
262
+
"completion_tokens": 68,
263
+
"total_tokens": 126
264
+
},
265
+
"choices":
266
+
[
267
+
{
268
+
"message":
269
+
{
270
+
"role": "assistant",
271
+
"content": "Yes, other Azure AI services also support customer managed keys.
272
+
Azure AI services offer multiple options for customers to manage keys, such as
273
+
using Azure Key Vault, customer-managed keys in Azure Key Vault or
274
+
customer-managed keys through Azure Storage service. This helps customers ensure
275
+
that their data is secure and access to their services is controlled."
276
+
},
277
+
"finish_reason": "stop",
278
+
"index": 0
279
+
}
280
+
]
281
+
}
262
282
```
283
+
Output formatting adjusted for ease of reading, actual output is a single block of text without line breaks.
263
284
264
285
In the example response, `finish_reason` equals `stop`. If `finish_reason` equals `content_filter` consult our [content filtering guide](./concepts/content-filter.md) to understand why this is occurring.
265
286
266
-
Output formatting adjusted for ease of reading, actual output is a single block of text without line breaks.
267
-
268
287
> [!IMPORTANT]
269
288
> The `functions` and `function_call` parameters have been deprecated with the release of the [`2023-12-01-preview`](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/inference.json) version of the API. The replacement for `functions` is the `tools` parameter. The replacement for `function_call` is the `tool_choice` parameter. Parallel function calling which was introduced as part of the [`2023-12-01-preview`](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/inference.json) is only supported with `gpt-35-turbo` (1106) and `gpt-4` (1106-preview) also known as GPT-4 Turbo Preview.
|```messages```| array | Required || The collection of context messages associated with this chat completions request. Typical usage begins with a [chat message](#chatmessage) for the System role that provides instructions for the behavior of the assistant, followed by alternating messages between the User and Assistant roles.|
274
-
|```temperature```| number | Optional | 1 | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both. |
293
+
|```temperature```| number | Optional | 1 | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both. |
275
294
|```n```| integer | Optional | 1 | How many chat completion choices to generate for each input message. |
276
295
|```stream```| boolean | Optional | false | If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a `data: [DONE]` message." |
277
296
|```stop```| string or array | Optional | null | Up to 4 sequences where the API will stop generating further tokens.|
0 commit comments