model

package
v6.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortItems added in v6.6.6

func SortItems(items []Item, sortSpec sdk.SortSpec) error

Types

type DalleDress

type DalleDress struct {
	Original        string                      `json:"original"`
	OriginalName    string                      `json:"originalName"`
	FileName        string                      `json:"fileName"`
	FileSize        int64                       `json:"fileSize"`
	ModifiedAt      int64                       `json:"modifiedAt"`
	Seed            string                      `json:"seed"`
	Prompt          string                      `json:"prompt"`
	DataPrompt      string                      `json:"dataPrompt"`
	TitlePrompt     string                      `json:"titlePrompt"`
	TersePrompt     string                      `json:"tersePrompt"`
	EnhancedPrompt  string                      `json:"enhancedPrompt"`
	Attribs         []prompt.Attribute          `json:"attributes"`
	AttribMap       map[string]prompt.Attribute `json:"-"`
	SeedChunks      []string                    `json:"seedChunks"`
	SelectedTokens  []string                    `json:"selectedTokens"`
	SelectedRecords []string                    `json:"selectedRecords"`
	ImageURL        string                      `json:"imageUrl"`
	GeneratedPath   string                      `json:"generatedPath"`
	AnnotatedPath   string                      `json:"annotatedPath"`
	DownloadMode    string                      `json:"downloadMode"`
	IPFSHash        string                      `json:"ipfsHash"`
	CacheHit        bool                        `json:"cacheHit"`
	Completed       bool                        `json:"completed"`
	Series          string                      `json:"series"`
}

DalleDress represents a generated prompt and its associated attributes.

func (*DalleDress) Action

func (dd *DalleDress) Action(short bool) string

func (*DalleDress) Adjective

func (dd *DalleDress) Adjective(short bool) string

func (*DalleDress) Adverb

func (dd *DalleDress) Adverb(short bool) string

func (*DalleDress) ArtStyle

func (dd *DalleDress) ArtStyle(short bool, which int) string

func (*DalleDress) BackStyle

func (dd *DalleDress) BackStyle(short bool) string

func (*DalleDress) Color

func (dd *DalleDress) Color(short bool, which int) string

func (*DalleDress) Composition

func (dd *DalleDress) Composition(short bool) string

func (*DalleDress) Emotion

func (dd *DalleDress) Emotion(short bool) string

func (*DalleDress) ExecuteTemplate

func (dd *DalleDress) ExecuteTemplate(t *template.Template, f func(s string) string) (string, error)

func (*DalleDress) FromTemplate

func (dd *DalleDress) FromTemplate(templateStr string) (string, error)

func (*DalleDress) Gaze

func (dd *DalleDress) Gaze(short bool) string

func (*DalleDress) HasLitStyle

func (dd *DalleDress) HasLitStyle() bool

func (*DalleDress) LitPrompt

func (dd *DalleDress) LitPrompt(short bool) string

func (*DalleDress) LitStyle

func (dd *DalleDress) LitStyle(short bool) string

func (*DalleDress) LitStyleDescr

func (dd *DalleDress) LitStyleDescr() string

func (*DalleDress) Noun

func (dd *DalleDress) Noun(short bool) string

func (*DalleDress) Occupation

func (dd *DalleDress) Occupation(short bool) string

func (*DalleDress) String

func (d *DalleDress) String() string

func (*DalleDress) Viewpoint

func (dd *DalleDress) Viewpoint(short bool) string

type Database

type Database struct {
	ID           string   `json:"id"`
	Name         string   `json:"name"`
	DatabaseName string   `json:"databaseName"` // Internal name from DatabaseNames (e.g., "nouns")
	Count        uint64   `json:"count"`        // Total record count
	Sample       string   `json:"sample"`       // Sample record (first record)
	Filtered     string   `json:"filtered"`     // Filter status indicator
	Version      string   `json:"version"`      // Version from CSV (e.g., "v0.1.0")
	Columns      []string `json:"columns"`      // Column names
	Description  string   `json:"description"`  // Database description
	LastUpdated  int64    `json:"lastUpdated"`  // Timestamp
	CacheHit     bool     `json:"cacheHit"`     // Whether loaded from cache
}

type Generator

type Generator struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Item added in v6.6.6

type Item struct {
	ID           string `json:"id"`
	DatabaseName string `json:"databaseName"` // Which database this record belongs to
	Index        uint64 `json:"index"`        // Item index/position
	Version      string `json:"version"`      // Version from CSV (e.g., "v0.1.0")
	Value        string `json:"value"`        // The actual record value
	Remainder    string `json:"remainder"`    // Remaining CSV columns joined
}

Jump to

Keyboard shortcuts

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