Documentation
¶
Index ¶
- func Blobs(properties []*modulecapabilities.GenerateProperties) []map[string]*string
- func MakeSinglePrompt(textProperties map[string]string, prompt string) (string, error)
- func MakeTaskPrompt(textProperties []map[string]string, task string) (string, error)
- func ParseImageProperties(inputBase64Images []*string, inputImagePropertyNames []string, ...) []*string
- func Text(properties *modulecapabilities.GenerateProperties) map[string]string
- func Texts(properties []*modulecapabilities.GenerateProperties) []map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Blobs ¶
func Blobs(properties []*modulecapabilities.GenerateProperties) []map[string]*string
func MakeSinglePrompt ¶
func MakeTaskPrompt ¶
func ParseImageProperties ¶
func ParseImageProperties(inputBase64Images []*string, inputImagePropertyNames []string, storedBase64ImagesArray []map[string]*string) []*string
ParseImageProperties parses the user-supplied base64 images in inputImages and server-stored base64 images in storedImagePropertiesArray based on the inputImageProperties.
It returns a slice of pointers to base64 strings in order to optimise for memory usage when dealing with large images.
func Text ¶
func Text(properties *modulecapabilities.GenerateProperties) map[string]string
func Texts ¶
func Texts(properties []*modulecapabilities.GenerateProperties) []map[string]string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.