Create a dictionary that can be part of a message content list.
Parses an image string from a dictionary with the correct format.
Parses an string from a dictionary or string with the correct format.
Encodes image bytes into a b64 encoded string.
Returns a custom user agent header.
Loads image bytes from multiple sources given a string.
Currently supported:
Implementation of the Image Captioning model as an LLM.
Implementation of the Image Captioning model as a chat.
Chat implementation of a visual QnA model.
Generates an image from a prompt.
Given an image and a prompt, edits the image.
Currently only supports mask free editing.