Skip to content

Fix: Use subPath as root dir when invoking runtime #152

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
Mar 14, 2024

Conversation

StrongMonkey
Copy link
Contributor

When reference a tool in a subDir, for example

tools: github.com/gptscript-ai/search/duckduckgo, sys.http.html2text?

summarize nba standings for last season. Search using DuckDuckGo. Feel free to get the contents
of the returned URLs in order to get more information. Provide as much detail as you can.

The runtime is being called at the root level, not the subPath. Normally the file(main.go) will live in the same directory as tool.gpt, so runtime will fail. It probably makes more sense to assume all the files are living in the same directory within the subDir that it is referencing to.

Also, in go runtime, building in subDir will fail because of missing git VCS info. Adding -buildvcs=false should fix that.

Copy link
Member

@g-linville g-linville left a comment

Choose a reason for hiding this comment

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

Thanks Daishan!

@ibuildthecloud ibuildthecloud merged commit 9da061b into gptscript-ai:main Mar 14, 2024
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