Skip to content
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

Add an ability to use tools in prompts #261

Open
AsDeep opened this issue Sep 27, 2024 · 2 comments
Open

Add an ability to use tools in prompts #261

AsDeep opened this issue Sep 27, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@AsDeep
Copy link

AsDeep commented Sep 27, 2024

Is your feature request related to a problem? Please describe.
Since tools argument of request is hardcoded in _stream_query, there's no chance of any tool being used during prompt through this api.

Describe the solution you'd like
Add new optional argument to hugchat.chat which will override tools in _stream_query

Describe alternatives you've considered
Add new function to be used as tool generation, which will require tool ids passed in dict as argument

Additional context
I know tools without GUI are hard to use, but it would be great to have at least an opportunity to use their hardcoded ids.
I tried hardcoding default tools' ids into _stream_query and it works fine.

P. S.
Also, I've got your API rewritten with async support. Since I'm new in python, it is being used only by me, but if you are interested I can share my work.

@AsDeep AsDeep added the enhancement New feature or request label Sep 27, 2024
Copy link

Hi! Thanks for your issue, we will deal with your issue as soon as possible.

@Soulter
Copy link
Owner

Soulter commented Oct 6, 2024

Hello, sorry for the late reply. For the personal reasons I cannot implement the latest features into this api in time. Welcome any helpful contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants