Skip to content

[Project] AI Standardization - #239

Draft
akash9676 wants to merge 245 commits into
devfrom
project-1-ai-standardization
Draft

[Project] AI Standardization#239
akash9676 wants to merge 245 commits into
devfrom
project-1-ai-standardization

Conversation

@akash9676

Copy link
Copy Markdown
Collaborator

No description provided.

akash9676 and others added 30 commits March 30, 2026 14:43
…LiteLLMRPC, enabling request cancellation"

This reverts commit a654e9e.
feat(db): addding tables and schemas for AI integration
…role, and study options, including UI components for selection and expiry date management
…components for improved modularity and maintainability
…data binding for user, role, and study selections
Comment thread backend/utils/studyNlpDocumentData.js
Comment thread backend/utils/studyNlpDocumentData.js
Comment thread backend/utils/studyNlpDocumentData.js Outdated
Comment thread backend/utils/templateResolver.js Outdated
Comment thread backend/utils/templateResolver.js Outdated
/**
* Builds the params object passed directly to LiteLLM's completion() call from a credential row and a model name.
*
* @param {{ provider?: string, apiKey?: string, apiBaseUrl?: string, apiVersion?: string }} credential

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same as in previous files:

  1. We describe the parameters differently.
  2. No textual description for return

Check other functions and files for this too.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it is the same JSdocs but modern and cleaner, but no harm in changing them as well. I did for my functions, update yours. @akash9676

Comment thread backend/webserver/services/ai/hook.js Outdated
Comment thread backend/webserver/services/ai/hook.js Outdated
* @param {Object} options Trigger runtime options
* @returns {Object}
*/
function transactionOptions(options = {}) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

we usually just pass { transaction: options.transaction } when calling a model function (getbyid etc) instead of defining such a function

const model = server.db.models[QUEUE_TABLE];
if (!model) return null;

const item = await model.add({

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

new lines look weird in this function

documentId,
studySessionId: null,
studyStepId: null,
key: buildStudyHookKey("nlpRequest", hook.name),

@MRawhani MRawhani Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why nlpRequest here as key?
when we save to document data, we use the wrokflow service name.

MRawhani and others added 16 commits July 28, 2026 11:02
Co-authored-by: Cursor <cursoragent@cursor.com>
- Added `getProviders` method in LiteLLMRPC to fetch supported provider slugs.
- Integrated provider loading in AICredential component with loading state and error handling.
- Updated chat service to include `getProviders` functionality.
- Enhanced templateResolver.js to correct import paths.
- Added server-side support for `getProviders` in the LiteLLM Python implementation.
- Changed the order of 'Triggers' to 6 and 'Settings' to 7 in the dashboard navigation group settings.
…component

- Changed the display of trigger names to show "<Deleted Trigger>" for triggers that are no longer available.
- Updated error summary to reflect the new trigger name handling for deleted triggers.
- Implemented a searchable mode for the select component, allowing users to filter options via a search input.
- Updated the form documentation to include examples of the new searchable select feature.
- Enhanced the AICredential component to utilize the searchable select for provider selection, improving user experience during provider loading.
…omponent

- Updated the updateMapping method to allow only one table-based source for Skills, while enabling multiple sources for Hooks when using indexed placeholders.
- Simplified value binding in the Select component to ensure it directly uses option values.
- Enhanced currentData handling to prevent unnecessary updates and ensure correct value resolution.
- Updated InputMap component to use :model-value for better compatibility with the Select component's changes.
- Refactored fallback logic to ensure skills are loaded correctly when no live nodes are available.
- Enhanced error handling during fallback loading to prevent crashes and ensure skills are populated.
- Updated skill update logic to handle cases where skills may be empty, ensuring clients receive the correct updates.
- Updated the file system module import to use fs.promises for better handling of asynchronous operations.
- This change improves code readability and aligns with modern JavaScript practices.
@eyadmohamed01
eyadmohamed01 self-requested a review August 12, 2026 15:58
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.

6 participants