Core namespace for the AI Baby Generator library. Provides utility functions for interacting with the SuperMaker AI Baby Generator.
Core namespace for the AI Baby Generator library. Provides utility functions for interacting with the SuperMaker AI Baby Generator.
(extract-image-id image-url)Extracts the image ID from a SuperMaker AI Baby Generator image URL.
Assumes the URL contains an image ID in a specific format. Returns the image ID as a string, or nil if not found.
Extracts the image ID from a SuperMaker AI Baby Generator image URL. Assumes the URL contains an image ID in a specific format. Returns the image ID as a string, or nil if not found.
(generate-baby-url parent-1-url parent-2-url)Generates a URL for the AI Baby Generator based on parent image URLs.
Accepts two parent image URLs as strings and constructs the URL. Returns the generated URL as a string. Returns nil if either parent URL is nil or empty.
Generates a URL for the AI Baby Generator based on parent image URLs. Accepts two parent image URLs as strings and constructs the URL. Returns the generated URL as a string. Returns nil if either parent URL is nil or empty.
(process-mock-data data)Processes mock data representing AI baby generator results.
Takes a vector of maps, where each map represents a generated baby image and contains keys like :image-url and :description.
Returns a new vector of maps with a cleaned-up description field; specifically, it truncates the description to a maximum length of 50 characters and adds '...' if it was truncated.
Processes mock data representing AI baby generator results. Takes a vector of maps, where each map represents a generated baby image and contains keys like :image-url and :description. Returns a new vector of maps with a cleaned-up description field; specifically, it truncates the description to a maximum length of 50 characters and adds '...' if it was truncated.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |