Skip to main content
Version: Next

OpenAIVision

Helper for vision stuff.

Functions

create()

*create(imageURL : Text) : OpenAIVisionHelper

ParameterTypeDescription
imageURLTextThe URL of the image to analyze.
Function resultOpenAIVisionHelperA helper instance for analyzing the image.

Example Usage

var $helper:=$client.chat.vision.create("http://example.com/image.jpg")
var $result:=$helper.prompt("Could you describe it?")

fromFile()

*fromFile(imageFile : 4D.File) : OpenAIVisionHelper

ParameterTypeDescription
imageFile4D.FileThe image file to analyze.
Function resultOpenAIVisionHelperA helper instance for analyzing the image.

Example Usage

var $helper:=$client.chat.vision.fromFile(Folder(fk resource foldres).file("image.png"))
var $result:=$helper.prompt("Could you describe it?")

fromPicture()

*fromPicture(image : Picture) : OpenAIVisionHelper

ParameterTypeDescription
imagePictureThe image to analyze.
Function resultOpenAIVisionHelperA helper instance for analyzing the image.

Example Usage

var $helper:=$client.chat.vision.fromPicture($image)
var $result:=$helper.prompt("Could you describe it?")