Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DEFAULT = Configurations{ Model: "dall-e-3", PromptFormat: "I NEED to test how the tool works with extremely simple prompts. DO NOT add any detail, just use it AS-IS: '%v'", Output: Output{ Type: LOCAL, Dir: fmt.Sprintf("%v/Pictures", os.Getenv("HOME")), Prefix: "clai", }, }
Functions ¶
func StartAnimation ¶
func StartAnimation() func()
func ValidateOutputType ¶
func ValidateOutputType(outputType OutputType) error
Types ¶
type Configurations ¶
type Configurations struct { Model string `json:"model"` // Format of the prompt, will place prompt at '%v' PromptFormat string `json:"prompt-format"` Output Output `json:"output"` Raw bool `json:"raw"` StdinReplace string `json:"-"` ReplyMode bool `json:"-"` Prompt string `json:"-"` }
func (*Configurations) SetupPrompts ¶
func (c *Configurations) SetupPrompts() error
type Output ¶
type Output struct { Type OutputType `json:"type"` Dir string `json:"dir"` Prefix string `json:"prefix"` }
type OutputType ¶
type OutputType string
const ( URL OutputType = "url" LOCAL OutputType = "local" )
Click to show internal directories.
Click to hide internal directories.