Skip to content

Commit

Permalink
[Examples] Updating orange picture links (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinelski authored Sep 27, 2024
1 parent a330c2e commit b7e8766
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ For this example, we will use both image data from a local file as well as an im
OpenAIFile pictureOfAppleFile = fileClient.UploadFile(
Path.Combine("Assets", "picture-of-apple.png"),
FileUploadPurpose.Vision);
Uri linkToPictureOfOrange = new("https://platform.openai.com/fictitious-files/picture-of-orange.png");
Uri linkToPictureOfOrange = new("https://raw.githubusercontent.com/openai/openai-dotnet/refs/heads/main/examples/Assets/picture-of-orange.png");
```

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

```text
--- Run started! ---
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!
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!
```

## How to work with Azure OpenAI
Expand Down
2 changes: 1 addition & 1 deletion examples/Assistants/Example05_AssistantsWithVision.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void Example05_AssistantsWithVision()
OpenAIFile pictureOfAppleFile = fileClient.UploadFile(
Path.Combine("Assets", "picture-of-apple.png"),
FileUploadPurpose.Vision);
Uri linkToPictureOfOrange = new("https://platform.openai.com/fictitious-files/picture-of-orange.png");
Uri linkToPictureOfOrange = new("https://raw.githubusercontent.com/openai/openai-dotnet/refs/heads/main/examples/Assets/picture-of-orange.png");

Assistant assistant = assistantClient.CreateAssistant(
"gpt-4o",
Expand Down
2 changes: 1 addition & 1 deletion examples/Assistants/Example05_AssistantsWithVisionAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public async Task Example05_AssistantsWithVisionAsync()
OpenAIFile pictureOfAppleFile = await fileClient.UploadFileAsync(
Path.Combine("Assets", "picture-of-apple.png"),
FileUploadPurpose.Vision);
Uri linkToPictureOfOrange = new("https://platform.openai.com/fictitious-files/picture-of-orange.png");
Uri linkToPictureOfOrange = new("https://raw.githubusercontent.com/openai/openai-dotnet/refs/heads/main/examples/Assets/picture-of-orange.png");

Assistant assistant = await assistantClient.CreateAssistantAsync(
"gpt-4o",
Expand Down

0 comments on commit b7e8766

Please sign in to comment.