Saltar al contenido principal
Versión: Siguiente

OpenAIVision

Helper for vision stuff.

Funciones

create()

*create(imageURL : Text) : OpenAIVisionHelper

ParámetrosTipoDescripción
imageURLTextThe URL of the image to analyze.
ResultadoOpenAIVisionHelperA helper instance for analyzing the image.

Ejemplo de Uso

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

ParámetrosTipoDescripción
imageFile4D.FileThe image file to analyze.
ResultadoOpenAIVisionHelperA helper instance for analyzing the image.

Ejemplo de Uso

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

ParámetrosTipoDescripción
imagenPictureThe image to analyze.
ResultadoOpenAIVisionHelperA helper instance for analyzing the image.

Ejemplo de Uso

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