We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c055d7 commit 837c4faCopy full SHA for 837c4fa
articles/ai-services/openai/includes/gpt-v-dotnet.md
@@ -100,10 +100,14 @@ To run the quickstart, follow these steps:
100
101
var imageUrl = "YOUR_IMAGE_URL";
102
103
+ var textPart = ChatMessageContentPart.CreateTextPart("Describe this picture:");
104
+ var imgPart = ChatMessageContentPart.CreateImagePart(imageUrl);
105
+
106
var chatMessages = new List<ChatMessage>
107
{
108
new SystemChatMessage("You are a helpful assistant."),
- new UserChatMessage($"Describe this picture: {imageUrl}")
109
+ new UserChatMessage(textPart, imgPart)
110
111
};
112
113
ChatCompletion chatCompletion = await chatClient.CompleteChatAsync(chatMessages);
0 commit comments