Skip to content

Commit b7e8766

Browse files
authored
[Examples] Updating orange picture links (#231)
1 parent a330c2e commit b7e8766

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ For this example, we will use both image data from a local file as well as an im
670670
OpenAIFile pictureOfAppleFile = fileClient.UploadFile(
671671
Path.Combine("Assets", "picture-of-apple.png"),
672672
FileUploadPurpose.Vision);
673-
Uri linkToPictureOfOrange = new("https://platform.openai.com/fictitious-files/picture-of-orange.png");
673+
Uri linkToPictureOfOrange = new("https://raw.githubusercontent.com/openai/openai-dotnet/refs/heads/main/examples/Assets/picture-of-orange.png");
674674
```
675675

676676
Next, create a new assistant with a vision-capable model like `gpt-4o` and a thread with the image information referenced:
@@ -731,7 +731,7 @@ This will yield streamed output from the run like the following:
731731

732732
```text
733733
--- Run started! ---
734-
The first image shows a red apple with a smooth skin and a single leaf, while the second image depicts an orange with a rough, textured skin and a leaf with droplets of water. Comparing them might seem impossible - it's like apples and oranges!
734+
The first image depicts a multicolored apple with a blend of red and green hues, while the second image shows an orange with a bright, textured orange peel; one might say it’s comparing apples to oranges!
735735
```
736736

737737
## How to work with Azure OpenAI

examples/Assistants/Example05_AssistantsWithVision.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void Example05_AssistantsWithVision()
2121
OpenAIFile pictureOfAppleFile = fileClient.UploadFile(
2222
Path.Combine("Assets", "picture-of-apple.png"),
2323
FileUploadPurpose.Vision);
24-
Uri linkToPictureOfOrange = new("https://platform.openai.com/fictitious-files/picture-of-orange.png");
24+
Uri linkToPictureOfOrange = new("https://raw.githubusercontent.com/openai/openai-dotnet/refs/heads/main/examples/Assets/picture-of-orange.png");
2525

2626
Assistant assistant = assistantClient.CreateAssistant(
2727
"gpt-4o",

examples/Assistants/Example05_AssistantsWithVisionAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task Example05_AssistantsWithVisionAsync()
2222
OpenAIFile pictureOfAppleFile = await fileClient.UploadFileAsync(
2323
Path.Combine("Assets", "picture-of-apple.png"),
2424
FileUploadPurpose.Vision);
25-
Uri linkToPictureOfOrange = new("https://platform.openai.com/fictitious-files/picture-of-orange.png");
25+
Uri linkToPictureOfOrange = new("https://raw.githubusercontent.com/openai/openai-dotnet/refs/heads/main/examples/Assets/picture-of-orange.png");
2626

2727
Assistant assistant = await assistantClient.CreateAssistantAsync(
2828
"gpt-4o",

0 commit comments

Comments
 (0)