Skip to content

Instantly share code, notes, and snippets.

@vman
Last active September 22, 2024 08:48
Show Gist options
  • Select an option

  • Save vman/fb78045ab2fcade7a8f52c9d2923689d to your computer and use it in GitHub Desktop.

Select an option

Save vman/fb78045ab2fcade7a8f52c9d2923689d to your computer and use it in GitHub Desktop.
var chatClient = openAiClient.GetChatClient(deploymentName);
List<ChatMessage> messages = [
new UserChatMessage(
ChatMessageContentPart.CreateImageMessageContentPart(
new Uri("https://dalleprodsec.blob.core.windows.net/private/images/generated_00.png"),
ImageChatMessageContentPartDetail.High)
),
new UserChatMessage(
ChatMessageContentPart.CreateImageMessageContentPart(
new Uri("https://dalleprodsec.blob.core.windows.net/private/images/generated_01.png"),
ImageChatMessageContentPartDetail.High)
),
new UserChatMessage("Using the first image as a reference, what should change in the second image so that both images are similar?"),
];
ChatCompletion chatCompletion = chatClient.CompleteChat(messages);
Console.WriteLine($"[ASSISTANT]: {chatCompletion}");

[ASSISTANT]: To make the second image more similar to the first image, consider the following changes:

  1. Noodle Type: Use spaghetti instead of rotini pasta.

  2. Ingredients: Incorporate cherry tomatoes and black olives, as seen in the first image, and reduce the variety of vegetables.

  3. Color Scheme: Emphasize more red and yellow colors from the tomatoes and peppers, similar to the first image.

  4. Garnish and Seasoning: Add fresh herbs like basil and a sprinkle of grated cheese or visible seasoning such as pepper.

  5. Presentation: Arrange the dish more concentrically for a spiral design, as in the first image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment