feat(ui): generate avatars (#80)
* feat(ui): generate avatars Signed-off-by: mudler <mudler@localai.io> * Show a placeholder if the image is not ready Signed-off-by: mudler <mudler@localai.io> * feat(avatar): generate prompt first Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: mudler <mudler@localai.io> Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
c1ac7b675a
commit
3a921f6241
@@ -9,6 +9,7 @@ type Config struct {
|
||||
LLMAPIURL string
|
||||
LLMAPIKey string
|
||||
LLMModel string
|
||||
StateDir string
|
||||
}
|
||||
|
||||
type Option func(*Config)
|
||||
@@ -19,6 +20,12 @@ func WithDefaultChunkSize(size int) Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithStateDir(dir string) Option {
|
||||
return func(c *Config) {
|
||||
c.StateDir = dir
|
||||
}
|
||||
}
|
||||
|
||||
func WithLLMModel(model string) Option {
|
||||
return func(c *Config) {
|
||||
c.LLMModel = model
|
||||
|
||||
Reference in New Issue
Block a user