Bundle OpenAI API client. Supports Chat Completions (GPT-4o, o1, etc.), Embeddings, Image Generation (DALL-E), and function/tool calling. Set OPENAI_API_KEY environment variable before use. Compile with -lib openai.
ImageQuery
Image query
Operations
GetImage #
Get the image URL
method : public : GetImage() ~ Byte[]Return
| Type | Description |
|---|---|
| Byte | image bytes |
GetImageUrl #
Get the image URL
method : public : GetImageUrl() ~ UrlReturn
| Type | Description |
|---|---|
| Url | image URL |
GetMimeType #
Get the image mime type
method : public : GetMimeType() ~ StringReturn
| Type | Description |
|---|---|
| String | image mime type |
GetQuery #
Get the text query
method : public : GetQuery() ~ StringReturn
| Type | Description |
|---|---|
| String | text query |
New # constructor
Constructor
New(query:String, image_url:Url)Parameters
| Name | Type | Description |
|---|---|---|
| query | String | text query |
| image_url | Url | URL to image |
New # constructor
Constructor
New(query:String, image:Byte[], mime_type:ImageQuery->MimeType)Parameters
| Name | Type | Description |
|---|---|---|
| query | String | text query |
| image | Byte | binary image |
| mime_type | ImageQuery->MimeType | imag MIME type |