feat(api): add endpoint to create group of dedicated agents (#79)
Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
d689bb4331
commit
c1ac7b675a
@@ -6,6 +6,9 @@ type Config struct {
|
||||
DefaultChunkSize int
|
||||
Pool *state.AgentPool
|
||||
ApiKeys []string
|
||||
LLMAPIURL string
|
||||
LLMAPIKey string
|
||||
LLMModel string
|
||||
}
|
||||
|
||||
type Option func(*Config)
|
||||
@@ -16,6 +19,24 @@ func WithDefaultChunkSize(size int) Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithLLMModel(model string) Option {
|
||||
return func(c *Config) {
|
||||
c.LLMModel = model
|
||||
}
|
||||
}
|
||||
|
||||
func WithLLMAPIUrl(url string) Option {
|
||||
return func(c *Config) {
|
||||
c.LLMAPIURL = url
|
||||
}
|
||||
}
|
||||
|
||||
func WithLLMAPIKey(key string) Option {
|
||||
return func(c *Config) {
|
||||
c.LLMAPIKey = key
|
||||
}
|
||||
}
|
||||
|
||||
func WithPool(pool *state.AgentPool) Option {
|
||||
return func(c *Config) {
|
||||
c.Pool = pool
|
||||
|
||||
Reference in New Issue
Block a user