removed duplicated parameters
This commit is contained in:
parent
5159a015ae
commit
f8166d9841
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
|
||||
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
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@ type AnalyzeImageTool struct {
|
|||
restrict bool
|
||||
}
|
||||
|
||||
func NewAnalyzeImageTool(opts config.VisionToolConfig) *AnalyzeImageTool {
|
||||
func NewAnalyzeImageTool(opts config.VisionToolConfig, workspace string, restrict bool) *AnalyzeImageTool {
|
||||
return &AnalyzeImageTool{
|
||||
workspace: opts.Workspace,
|
||||
restrict: opts.Restrict,
|
||||
workspace: workspace,
|
||||
restrict: restrict,
|
||||
apiKey: opts.ApiKey,
|
||||
apiURL: opts.ApiURL,
|
||||
model: opts.Model,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue