Closed fm3 closed 5 days ago
The pull request introduces enhancements to the InitialDataController.scala
file, specifically in the InitialDataService
class. Key modifications include the addition of AI model-related imports, updates to the constructor to include an AiModelDAO
, the introduction of a default AI model instance, and the implementation of an insertAiModel()
method. This method ensures that a default AI model is inserted into the database during the initial data setup if no existing models are found.
File | Change Summary |
---|---|
app/controllers/InitialDataController.scala | - Added imports for AiModel , AiModelCategory , and AiModelDAO . - Updated constructor to include aiModelDAO: AiModelDAO . - Introduced a private variable defaultAiModel initialized with specific parameters. - Modified insert method to call insertAiModel() . - Added new method insertAiModel() to handle AI model insertion. |
Objective | Addressed | Explanation |
---|---|---|
Create AiModel in Dev Setup InitialData for Sample Organization (#8199) | ✅ |
🐰 In the code where rabbits play,
New AI models join the fray!
With data fresh, they hop and cheer,
For every test, the path is clear.
A model here, a model there,
In our setup, joy we share! 🥕
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?
For easier testing of the ai model inference in development setup.
Steps to test:
yarn refresh-schema
yarn enable-jobs
it should be listed in/aimodels
and in the dropdown menu in the advanced inferal modal.Issues:
Summary by CodeRabbit
New Features
Bug Fixes