Skip to content

Instantly share code, notes, and snippets.

@vman
Created September 19, 2024 09:44
Show Gist options
  • Save vman/8a21ee3fb36282010645d3a5e730d56b to your computer and use it in GitHub Desktop.
Save vman/8a21ee3fb36282010645d3a5e730d56b to your computer and use it in GitHub Desktop.
var chatClient = openAiClient.GetChatClient(deploymentName);
List<ChatMessage> messages = [
new UserChatMessage(
ChatMessageContentPart.CreateImageMessageContentPart(
new Uri("https://www.allrecipes.com/thmb/HbnN9fkzDBmzI83sbxOhtbfEQUE=/750x0/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)/AR-15022-veggie-pizza-DDMFS-4x3-step-01-a32ad6054e974ecd9f79c8627bc9e811.jpg"),
ImageChatMessageContentPartDetail.High)
),
new UserChatMessage("What can I cook with these ingredients?"),
];
ChatCompletion chatCompletion = chatClient.CompleteChat(messages);
Console.WriteLine($"[ASSISTANT]: {chatCompletion}");

[ASSISTANT]: With these ingredients, you can make a vegetable pizza on a crescent roll crust. Here's a simple recipe:

Ingredients

  • Crescent roll dough (premade)
  • Cream cheese
  • Sour cream
  • Grated carrots
  • Broccoli florets
  • Chopped red bell pepper
  • Sliced radishes
  • Diced onion
  • Sliced celery
  • Ranch dressing mix (or powdered seasoning)

Instructions

  1. Prepare the Crust:

    • Preheat your oven according to the crescent roll package instructions.
    • Roll out the crescent dough onto a baking sheet, pressing the seams together to form a crust.
    • Bake until golden brown. Let it cool completely.
  2. Make the Spread:

    • In a mixing bowl, combine the cream cheese, sour cream, and ranch dressing mix until smooth.
  3. Assemble the Pizza:

    • Spread the cream cheese mixture evenly over the cooled crust.
    • Top with chopped broccoli, grated carrots, diced red bell pepper, sliced radishes, diced onion, and sliced celery.
  4. Serve:

    • Cut into squares and serve chilled.

This is a refreshing and colorful appetizer or snack!

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