cmd

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatBD

func ChatBD(cmdStr string) string

func ChatBedrock added in v0.1.0

func ChatBedrock()

func FileInit

func FileInit()

func GetAwsCfg

func GetAwsCfg() cfgisaac.IsaacConfig

func ImageBD added in v0.1.1

func ImageBD(cmdStr string) string

func ReadInitFile added in v0.1.0

func ReadInitFile() *cfgisaac.InitConfig

func Save2S3 added in v0.1.0

func Save2S3(name string) string

func TextFromDoc added in v0.2.0

func TextFromDoc(file, prompt string)

Types

type Completion added in v0.2.3

type Completion struct {
	Data Data `json:"data"`
}

type Data added in v0.2.3

type Data struct {
	Text string `json:"text"`
}

type ImageGenerationConfig added in v0.1.1

type ImageGenerationConfig struct {
	NumberOfImages int     `json:"numberOfImages"`
	Quality        string  `json:"quality"`
	CfgScale       float64 `json:"cfgScale"`
	Height         int     `json:"height"`
	Width          int     `json:"width"`
	Seed           int64   `json:"seed"`
}

type PromptFn added in v0.1.0

type PromptFn func(string) string

type Request

type Request struct {
	Prompt      string  `json:"prompt"`
	MaxTokens   int     `json:"maxTokens"`
	Temperature float64 `json:"temperature,omitempty"`

	StopSequences []string `json:"stop_sequences,omitempty"`
}

type Response added in v0.2.3

type Response struct {
	Completions []Completion `json:"completions"`
}

type TextToImageParams added in v0.1.1

type TextToImageParams struct {
	Text string `json:"text"`
}

type TitanImageRequest added in v0.1.1

type TitanImageRequest struct {
	TaskType              string                `json:"taskType"`
	TextToImageParams     TextToImageParams     `json:"textToImageParams"`
	ImageGenerationConfig ImageGenerationConfig `json:"imageGenerationConfig"`
}

type TitanImageResponse added in v0.1.1

type TitanImageResponse struct {
	Images []string `json:"images"`
}

Jump to

Keyboard shortcuts

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