new OpenAIClient( new Uri("<AOAI Endpoint>"), new AzureKeyCredential("AOAI Key")); var response = await client.GetChatCompletionsAsync( new ChatCompletionsOptions { DeploymentName = "<Deployment Name>", Messages = { new ChatRequestSystemMessage("System"), new ChatRequestUserMessage(new ChatMessageImageContentItem(sr, "image/jpg")), new ChatRequestUserMessage("User") }, }); Console.WriteLine(response.Value.Choices[0].Message.Content); 1.0.0-betaまで 22 Azure 専⽤ Client の 作成 ChatRequestUserMessageに ChatMessageImageContentItemを 詰めて渡す