Help us shape the future of Go! Take the 2026 Go Developer Survey

generative

package
v1.37.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blobs

func Blobs(properties []*modulecapabilities.GenerateProperties) []map[string]*string

func MakeSinglePrompt

func MakeSinglePrompt(textProperties map[string]string, prompt string) (string, error)

func MakeTaskPrompt

func MakeTaskPrompt(textProperties []map[string]string, task string) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL