Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadURL ¶
DownloadURL downloads a URL and returns the raw bytes only if the content is an image (image/png, image/jpeg, image/webp). Non-image URLs are skipped.
func Edit ¶
Edit modifies image(s) based on a text prompt using OpenAI's gpt-image-1 model. refImages contains raw image bytes (PNG/JPEG) to use as references. Returns raw PNG bytes.
func ExtractURLs ¶
ExtractURLs extracts HTTP/HTTPS URLs from text and returns the cleaned text (without URLs) and the list of extracted URLs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.