Skip to content

Commit 8b121ae

Browse files
committed
update versioning
1 parent 055d6e5 commit 8b121ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/ai-services/openai/how-to/gpt-with-vision.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The following command shows the most basic way to use the GPT-4 Turbo with Visio
3030

3131
#### [REST](#tab/rest)
3232

33-
Send a POST request to `https://{RESOURCE_NAME}.openai.azure.com/openai/deployments/{DEPLOYMENT_NAME}/chat/completions?api-version=2023-12-01-preview` where
33+
Send a POST request to `https://{RESOURCE_NAME}.openai.azure.com/openai/deployments/{DEPLOYMENT_NAME}/chat/completions?api-version=2024-02-15-preview` where
3434

3535
- RESOURCE_NAME is the name of your Azure OpenAI resource
3636
- DEPLOYMENT_NAME is the name of your GPT-4 Turbo with Vision model deployment
@@ -85,12 +85,12 @@ The following is a sample request body. The format is the same as the chat compl
8585
api_base = '<your_azure_openai_endpoint>' # your endpoint should look like the following https://YOUR_RESOURCE_NAME.openai.azure.com/
8686
api_key="<your_azure_openai_key>"
8787
deployment_name = '<your_deployment_name>'
88-
api_version = '2023-12-01-preview' # this might change in the future
88+
api_version = '2024-02-15-preview' # this might change in the future
8989

9090
client = AzureOpenAI(
9191
api_key=api_key,
9292
api_version=api_version,
93-
base_url=f"{api_base}openai/deployments/{deployment_name}/extensions",
93+
base_url=f"{api_base}openai/deployments/{deployment_name}",
9494
)
9595
```
9696

@@ -262,7 +262,7 @@ The **object grounding** integration brings a new layer to data analysis and use
262262
263263
#### [REST](#tab/rest)
264264

265-
Send a POST request to `https://{RESOURCE_NAME}.openai.azure.com/openai/deployments/{DEPLOYMENT_NAME}/extensions/chat/completions?api-version=2023-12-01-preview` where
265+
Send a POST request to `https://{RESOURCE_NAME}.openai.azure.com/openai/deployments/{DEPLOYMENT_NAME}/chat/completions?api-version=2024-02-15-preview` where
266266

267267
- RESOURCE_NAME is the name of your Azure OpenAI resource
268268
- DEPLOYMENT_NAME is the name of your GPT-4 Turbo with Vision model deployment
@@ -574,7 +574,7 @@ To use a User assigned identity on your Azure AI Services resource, follow these
574574
575575
#### [REST](#tab/rest)
576576
577-
1. Prepare a POST request to `https://{RESOURCE_NAME}.openai.azure.com/openai/deployments/{DEPLOYMENT_NAME}/extensions/chat/completions?api-version=2023-12-01-preview` where
577+
1. Prepare a POST request to `https://{RESOURCE_NAME}.openai.azure.com/openai/deployments/{DEPLOYMENT_NAME}/chat/completions?api-version=2024-02-15-preview` where
578578
579579
- RESOURCE_NAME is the name of your Azure OpenAI resource
580580
- DEPLOYMENT_NAME is the name of your GPT-4 Vision model deployment

0 commit comments

Comments
 (0)