Closed snopoke closed 2 weeks ago
@coderabbit review
The pull request introduces significant changes across multiple files related to the management of custom actions within a Django application. The OpenAiAssistantForm
class in apps/assistants/forms.py
sees the removal of the custom_actions
field, replaced by custom_action_operations
, a MultipleChoiceField
. This change is accompanied by a new validation method and updates to the form's save logic. In the model layer, the OpenAiAssistant
class reflects this change with the removal of the custom_actions
ManyToManyField and corresponding updates to methods that check for custom actions. The migration file for custom_actions
has been deleted, indicating a shift in the database schema. New models and fields are introduced in apps/custom_actions/models.py
and related files, enhancing the structure for handling custom actions and their operations. Several templates are updated to reflect the new field names, and new utility functions are added to assist with form initialization and validation. Overall, these changes represent a comprehensive restructuring of how custom actions are defined, validated, and utilized within the application.
OpenAiAssistant
and Experiment
models.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbit resolve
Just one question, otherwise it looks good to me.
Description
PR on top of https://github.com/dimagi/open-chat-studio/pull/811 that allows the user to select individual operations from a custom action schema.
This gives more control over which API endpoints the bot has access to without having to edit the API schema doc (which can be large)
Demo
My Team | dimagi | Dimagi Chatbots - 5 November 2024 - Watch Video