Documentation ¶
Index ¶
- func ChatBD(cmdStr string) string
- func ChatBedrock()
- func FileInit()
- func GetAwsCfg() cfgisaac.IsaacConfig
- func ImageBD(cmdStr string) string
- func ReadInitFile() *cfgisaac.InitConfig
- func Save2S3(name string) string
- func TextFromDoc(file, prompt string)
- type Completion
- type Data
- type ImageGenerationConfig
- type PromptFn
- type Request
- type Response
- type TextToImageParams
- type TitanImageRequest
- type TitanImageResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatBedrock ¶ added in v0.1.0
func ChatBedrock()
func GetAwsCfg ¶
func GetAwsCfg() cfgisaac.IsaacConfig
func ReadInitFile ¶ added in v0.1.0
func ReadInitFile() *cfgisaac.InitConfig
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 ImageGenerationConfig ¶ added in v0.1.1
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"`
}
Click to show internal directories.
Click to hide internal directories.