removed duplicated parameters
This commit is contained in:
parent
64a52580fe
commit
2c16eaa0e2
2 changed files with 4 additions and 4 deletions
|
|
@ -108,7 +108,7 @@ func registerSharedTools(cfg *config.Config, msgBus *bus.MessageBus, registry *A
|
||||||
|
|
||||||
// Vision tool
|
// Vision tool
|
||||||
if cfg.Tools.Vision.Enabled {
|
if cfg.Tools.Vision.Enabled {
|
||||||
agent.Tools.Register(tools.NewAnalyzeImageTool(cfg.Tools.Vision))
|
agent.Tools.Register(tools.NewAnalyzeImageTool(cfg.Tools.Vision, cfg.WorkspacePath(), cfg.Agents.Defaults.RestrictToWorkspace))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Message tool
|
// Message tool
|
||||||
|
|
|
||||||
|
|
@ -31,10 +31,10 @@ type AnalyzeImageTool struct {
|
||||||
restrict bool
|
restrict bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewAnalyzeImageTool(opts config.VisionToolConfig) *AnalyzeImageTool {
|
func NewAnalyzeImageTool(opts config.VisionToolConfig, workspace string, restrict bool) *AnalyzeImageTool {
|
||||||
return &AnalyzeImageTool{
|
return &AnalyzeImageTool{
|
||||||
workspace: opts.Workspace,
|
workspace: workspace,
|
||||||
restrict: opts.Restrict,
|
restrict: restrict,
|
||||||
apiKey: opts.ApiKey,
|
apiKey: opts.ApiKey,
|
||||||
apiURL: opts.ApiURL,
|
apiURL: opts.ApiURL,
|
||||||
model: opts.Model,
|
model: opts.Model,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue