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

Raw API request text from Tools displayed in UI #826

Closed
cliantab1 opened this issue Feb 25, 2025 · 2 comments
Closed

Raw API request text from Tools displayed in UI #826

cliantab1 opened this issue Feb 25, 2025 · 2 comments

Comments

@cliantab1
Copy link

I've implemented a tool that allows the chatbot to access the Internet via an API request. However, I've encountered a problem: when this tool is used, the plain text of the API request is displayed directly on the user interface instead of remaining hidden. And I'm unable to find out what's responsible for the tools content being displayed.

Thank you in advance for your support!

@vishnuravi
Copy link

This is likely the line responsible for printing out the raw result of your API request. When a tool is invoked that isn't explicitly handled, the raw result is being displayed directly to the user interface. To fix this, you need to create a specific component to handle your results and add a condition in the conditional chain to use this component when your tool is invoked.

@cliantab1
Copy link
Author

Thank you so much for your help! Your suggestion was spot on, and I was able to fix the issue by integrating a condition in the conditional chain.

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

No branches or pull requests

2 participants