mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-08 17:09:33 +08:00
change: disable register tools for models with function calling
This commit is contained in:
+13
-13
@@ -72,21 +72,21 @@ func (p *Planner) RegisterTools(tools []*schema.ToolInfo) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// register tools for models with function calling
|
// TODO: register tools for models with function calling
|
||||||
toolCallingModel, err := p.model.WithTools(tools)
|
// toolCallingModel, err := p.model.WithTools(tools)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
return errors.Wrap(err, "failed to register tools")
|
// return errors.Wrap(err, "failed to register tools")
|
||||||
}
|
// }
|
||||||
|
|
||||||
var toolNames []string
|
// var toolNames []string
|
||||||
for _, tool := range tools {
|
// for _, tool := range tools {
|
||||||
toolNames = append(toolNames, tool.Name)
|
// toolNames = append(toolNames, tool.Name)
|
||||||
}
|
// }
|
||||||
log.Debug().Strs("tools", toolNames).
|
// log.Debug().Strs("tools", toolNames).
|
||||||
Str("model", string(p.modelConfig.ModelType)).
|
// Str("model", string(p.modelConfig.ModelType)).
|
||||||
Msg("registered tools to model")
|
// Msg("registered tools to model")
|
||||||
|
|
||||||
p.model = toolCallingModel
|
// p.model = toolCallingModel
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user