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

feat: add config dangerously_functions_filter #582

Merged
merged 1 commit into from
Jun 11, 2024
Merged

feat: add config dangerously_functions_filter #582

merged 1 commit into from
Jun 11, 2024

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Jun 11, 2024

Previous we treats function name that starts with may_ as excute type (dangerously). This method requires modifying function names, which is inflexible.

This PR makes it configurable. In config.yaml, you can now define which functions are considered dangerous and require user confirmation.

dangerously_functions_filter: 'execute_.*'


bots:
  - name: todo-sh
    model: openai:gpt-4o
    dangerously_functions_filter: clear_todos

#587 rename selected_functions to functions_filter

@sigoden sigoden merged commit 8615293 into main Jun 11, 2024
3 checks passed
@sigoden sigoden deleted the feat branch June 11, 2024 06:01
@sigoden sigoden changed the title feat: add config dangerously_functions feat: add config dangerously_functions_filter Jun 11, 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.

None yet

1 participant