Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Faheemvc
Copy link
Contributor

Pull Request Description

Changes Made

  • Feature addition
  • Bug fix
  • Performance improvement
  • Refactoring
  • Documentation update
  • Other (please specify)

Description

Add custom prompt, now user can pass custom prompt and prompt type

How Has This Been Tested?

Tested locally with Postman Api

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My changes generate no new warnings.
  • I have checked my code and corrected any misspellings.

@Faheemvc Faheemvc requested a review from salsabeeljamal June 25, 2025 03:33
@Faheemvc Faheemvc self-assigned this Jun 25, 2025
Faheemvc and others added 7 commits June 25, 2025 09:08
- Added length validations for name and description fields.
- Implemented inclusion validation for status field.
- Introduced a custom validation for endpoint_url to ensure it is a valid HTTP/HTTPS URL.
- Introduced `get_model/2` and `get_prompt/2` functions to retrieve models and prompts scoped to a specific organization.
- Updated existing functions to reflect singular prompt and model terminology.
- Added `set_as_default_model/1` function to set a model as the default for an organization, ensuring existing defaults are unset.
- Enhanced documentation with examples for new and modified functions.
- Modified `get_model` and `get_prompt` functions to include organization ID for scoped retrieval.
- Updated controller actions to utilize the current user's organization ID for fetching models and prompts.
- Renamed plural function names to singular for consistency in the prompts controller.
- Added a new test suite for validating parameters and prompt data handling.
@salsabeeljamal salsabeeljamal merged commit f95308d into main Jun 25, 2025
1 check passed
@salsabeeljamal salsabeeljamal deleted the feature/ai-enhancement branch June 25, 2025 08:22
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.

3 participants