Skip to content

Vision support in o3 models #417

Discussion options

You must be logged in to vote

Yeah this is from the server. Best bet is to download your image into a local folder, then encode it to base64 string and convert that to bytes when you construct your request.

Here's how I handled native images for the Unity game engine for example:

var content = new (ContentType.ImageUrl, $"data:image/png;base64,{Convert.ToBase64String(texture.EncodeToPNG())}");

I didn't implement anything like this in my vanilla dotnet plugin to give people maximum flexibility.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RESEARCHEKASA
Comment options

@StephenHodgson
Comment options

Answer selected by RESEARCHEKASA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants