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
-`"@azure/openai/types"` is imported which adds Azure-specific definitions (for example, `data_sources`) to the client types
176
+
-`"@azure/openai/types"` is imported which adds Azure-specific definitions (for example, `data_sources`) to the client types.
177
177
- The `azureExtensionOptions` property has been replaced with the inner `data_sources` property.
178
178
- The `parameters` property has been added to wrap the parameters of the extension, which mirrors the schema of the Azure OpenAI service API.
179
179
- Camel case properties have been replaced with snake case properties.
@@ -205,10 +205,10 @@ const result = await client.getAudioTranscription(deploymentName, audio);
205
205
206
206
207
207
208
-
- The `getAudioTranscription` method has been replaced with the `audio.transcriptions.create` method
209
-
- The `AzureOpenAI` has to be constructed with the `deployment` option set to the deployment name in order to use audio operations such as `audio.transcriptions.create`
210
-
- The `model` property is required to be set in the options object but its value isn't used in the operation so feel free to set it to any value
211
-
- The `file` property accepts various types including `Buffer`, `fs.ReadaStream`, and `Blob` but in this example, a file is streamed from disk using `fs.createReadStream`
208
+
- The `getAudioTranscription` method has been replaced with the `audio.transcriptions.create` method.
209
+
- The `AzureOpenAI` has to be constructed with the `deployment` option set to the deployment name in order to use audio operations such as `audio.transcriptions.create`.
210
+
- The `model` property is required to be set in the options object but its value isn't used in the operation so feel free to set it to any value.
211
+
- The `file` property accepts various types including `Buffer`, `fs.ReadaStream`, and `Blob` but in this example, a file is streamed from disk using `fs.createReadStream`.
- The `getEmbeddings` method has been replaced with the `embeddings.create` method
422
-
- The `input` parameter is now passed in the options object with the `input` property
423
-
- The `deploymentName` parameter has been removed. The `deploymentName` parameter isn't needed if the client was created with the `deployment` option. If the client was not created with the `deployment` option, the `model` property in the option object should be set with the deployment name
421
+
- The `getEmbeddings` method has been replaced with the `embeddings.create` method.
422
+
- The `input` parameter is now passed in the options object with the `input` property.
423
+
- The `deploymentName` parameter has been removed. The `deploymentName` parameter isn't needed if the client was created with the `deployment` option. If the client was not created with the `deployment` option, the `model` property in the option object should be set with the deployment name.
- The `getImages` method has been replaced with the `images.generate` method
446
-
- The `prompt` parameter is now passed in the options object with the `prompt` property
447
-
- The `deploymentName` parameter has been removed. The `deploymentName` parameter isn't needed if the client was created with the `deployment` option. If the client was not created with the `deployment` option, the `model` property in the option object should be set with the deployment name
445
+
- The `getImages` method has been replaced with the `images.generate` method.
446
+
- The `prompt` parameter is now passed in the options object with the `prompt` property.
447
+
- The `deploymentName` parameter has been removed. The `deploymentName` parameter isn't needed if the client was created with the `deployment` option. If the client was not created with the `deployment` option, the `model` property in the option object should be set with the deployment name.
448
448
449
449
### Content filter
450
450
@@ -492,8 +492,8 @@ for (const choice of results.choices) {
492
492
---
493
493
494
494
495
-
- camel case properties have been replaced with snake case properties
496
-
- `"@azure/openai/types"` is imported which adds Azure-specific definitions (for example, content_filter_results) to the client types, see the [Azure types](#azure-types) section for more information
495
+
- Camel case properties have been replaced with snake case properties.
496
+
- `"@azure/openai/types"` is imported which adds Azure-specific definitions (for example, content_filter_results) to the client types, see the [Azure types](#azure-types) section for more information.
497
497
498
498
## Comparing Types
499
499
@@ -561,4 +561,4 @@ The following table explores several type names from `@azure/openai` and shows t
0 commit comments