Skip to content

fix: tool names should be used instead of filename #341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2024

Conversation

cloudnautique
Copy link
Contributor

Uses the toolname before the from otherwise it was using the filename and appending numbers losing context.

@@ -14,7 +14,8 @@ var (
)

func ToolNormalizer(tool string) string {
parts := strings.Split(tool, "/")
fromParts := strings.Split(tool, "from")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There a method SplitToolRef for this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will make the code a bit more complicated, but it will be more correct.

@cloudnautique cloudnautique force-pushed the use_tool_from_name branch 3 times, most recently from d6efbbc to a5843ae Compare May 10, 2024 23:59
@@ -14,7 +15,8 @@ var (
)

func ToolNormalizer(tool string) string {
parts := strings.Split(tool, "/")
_, subTool := SplitToolRef(tool)

This comment was marked as resolved.

Uses the toolname before the from otherwise it was using the filename
and appending numbers losing context.

Signed-off-by: Bill Maxwell <[email protected]>
@cloudnautique cloudnautique merged commit f0ae38a into gptscript-ai:main May 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants