Describe the bug
I can't use features of the vision API.
FromVisionUser, VisionContent and other vision's related element are not recognized.
Using latest OpenAI lib in Unity though nugget package manager.
Tested vision example.
Your code piece
var completionResult = await openAiService.ChatCompletion.CreateCompletion(
new ChatCompletionCreateRequest
{
Messages = new List<ChatMessage>
{
ChatMessage.FromSystem("You are an image analyzer assistant."),
ChatMessage.FromVisionUser(
new List<VisionContent>
{
VisionContent.TextContent("What is on the picture in details?"),
VisionContent.ImageBinaryContent(
binaryImage,
ImageStatics.ImageFileTypes.Png,
ImageStatics.ImageDetailTypes.High
)
}
),
},
MaxTokens = 300,
Model = Models.Gpt_4_vision_preview,
N = 1
}
);
Describe the bug I can't use features of the vision API. FromVisionUser, VisionContent and other vision's related element are not recognized. Using latest OpenAI lib in Unity though nugget package manager. Tested vision example.
Your code piece