Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Examples] Updating orange picture links #231

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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!
kinelski marked this conversation as resolved.
Show resolved Hide resolved
```

## 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
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
Loading