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

disable tools based on provided env variables #165

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

shubhiscoding
Copy link
Collaborator

@shubhiscoding shubhiscoding commented Jan 27, 2025

Fixes #85
disable tools based on provided tool names in NEXT_PUBLIC_DISABLED_TOOLS env variable or if a tool has a requiredEnvVar then you can disable that tool by simply not providing that env variable or making it's value an empty string.
The screenshot below shows dynamically disabling tools, by changing env variable
Screenshot from 2025-01-27 13-13-53

Copy link

vercel bot commented Jan 27, 2025

Someone is attempting to deploy a commit to the Neur Team on Vercel.

A member of the Team first needs to authorize it.

src/ai/providers.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@slimeonmyhead slimeonmyhead left a comment

Choose a reason for hiding this comment

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

🎉

@slimeonmyhead slimeonmyhead changed the base branch from main to beta January 28, 2025 16:46
@slimeonmyhead slimeonmyhead merged commit 030e58e into NeurProjects:beta Jan 28, 2025
1 check failed
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.

Dynamically inject tools based on which env variables are set
3 participants