Skip to content

Commit 0a195ed

Browse files
committed
add URl info
1 parent cad2579 commit 0a195ed

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Send a POST request to `https://{RESOURCE_NAME}.openai.azure.com/openai/deployme
3737
- `api-key`: {API_KEY}
3838

3939
**Body**:
40-
The following is a sample request body. The format is the same as the chat completions API for GPT-4, except that the message content can be an array containing text and images (either a valid HTTP or HTTPS URL to an image, or a base-64-encoded image).
40+
The following is a sample request body. The format is the same as the chat completions API for GPT-4, except that the message content can be an array containing text and images (either a valid publicly accessible HTTP or HTTPS URL to an image, or a base-64-encoded image).
4141

4242
> [!IMPORTANT]
4343
> Remember to set a `"max_tokens"` value, or the return output will be cut off.

articles/ai-foundry/openai/includes/gpt-v-dotnet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ To run the quickstart, follow these steps:
116116
Console.WriteLine($"{chatCompletion.Content[0].Text}");
117117
```
118118
119+
1. Replace `YOUR_IMAGE_URL` with the publicly accessible of the image you want to upload.
120+
119121
1. Run the application using the `dotnet run` command or the run button at the top of Visual Studio:
120122
121123
```dotnetcli

articles/ai-foundry/openai/includes/gpt-v-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ For the recommended keyless authentication with Microsoft Entra ID, you need to:
6868
6969
## Create a new JavaScript application for image prompts
7070
71-
Select an image from the [azure-samples/cognitive-services-sample-data-files](https://github.com/Azure-Samples/cognitive-services-sample-data-files/tree/master/ComputerVision/Images). Use the image URL in the code below or set the `IMAGE_URL` environment variable to the image URL.
71+
Select an image from the [azure-samples/cognitive-services-sample-data-files](https://github.com/Azure-Samples/cognitive-services-sample-data-files/tree/master/ComputerVision/Images). Enter your publicly accessible image URL in the code below or set the `IMAGE_URL` environment variable to it.
7272
7373
> [!IMPORTANT]
7474
> If you use a SAS URL to an image stored in Azure blob storage, you need to enable Managed Identity and assign the **Storage Blob Reader** role to your Azure OpenAI resource (do this in the Azure portal). This allows the model to access the image in blob storage.

articles/ai-foundry/openai/includes/gpt-v-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
8787

8888
1. Make the following changes:
8989
1. Enter the name of your GPT-4 Turbo with Vision deployment in the appropriate field.
90-
1. Change the value of the `"url"` field to the URL of your image.
90+
1. Change the value of the `"url"` field to the publicly accessible URL of your image.
9191
> [!TIP]
9292
> You can also use a base 64 encoded image data instead of a URL. For more information, see the [GPT-4 Turbo with Vision how-to guide](../how-to/gpt-with-vision.md#use-a-local-image).
9393
1. Run the application with the `python` command:

articles/ai-foundry/openai/includes/gpt-v-rest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
8888
1. Make the following changes:
8989
1. Enter your endpoint URL and key in the appropriate fields.
9090
1. Enter your GPT-4 Turbo with Vision deployment name in the appropriate field.
91-
1. Change the value of the `"image"` field to the URL of your image.
91+
1. Change the value of the `"image"` field to the publicly accessible URL of your image.
9292
> [!TIP]
9393
> You can also use a base 64 encoded image data instead of a URL. For more information, see the [GPT-4 Turbo with Vision how-to guide](../how-to/gpt-with-vision.md#use-a-local-image).
9494
1. Run the application with the `python` command:

0 commit comments

Comments
 (0)