UN-2427 [FEAT]: Dynamically override LLM Profile in API Deployment invocation#1388
Conversation
… override - from api deployment - Add end-to-end llm_profile_id propagation from API deployment to workflow execution - Implement profile-based tool settings override in structure tool with detailed change tracking - Add ownership validation to ensure only profile owners can use their profiles - Fix platform service helper to use correct profile_id column name - Update SDK integration with profile support branch and AWS dependencies - Add comprehensive logging for profile propagation and override debugging - Enhance structure tool with profile override methods and change reporting - Propagate llm_profile_id through FileData, workflow execution, and metadata storage - Add profile override mapping for chunk settings, LLM, embedding, vector DB, and x2text adapters - Include detailed before/after logging for tool metadata changes This enables dynamic tool configuration based on user-defined LLM profiles, allowing users to override tool settings like LLM models, embeddings, and processing parameters at runtime while maintaining backward compatibility and comprehensive audit logging.
chandrasekharan-zipstack
left a comment
There was a problem hiding this comment.
@vishnuszipstack it wasn't obvious from the screenshots but I thought that the Copy icon meant duplicating a profile. I think it might confuse users.
I suggest that we display the llm_profile_id (profile_id) against every record (as a greyed out text under the profile name maybe). We can have a little copy icon too next to it
|
@vishnuszipstack also ensure that the postman collection and our public docs is updated with this parameter |
chandrasekharan-zipstack
left a comment
There was a problem hiding this comment.
LGTM - left a minor concern around moving this validation of llm_profile_id into the serializer or by making use of DRF's permissions
…api-deployment-invocation
…-profile-in-api-deployment-invocation' into UN-2427-dynamically-override-llm-profile-in-api-deployment-invocation
|
|
…vocation (#1388) * FEAT: implement complete LLM profile ID propagation and tool settings override - from api deployment - Add end-to-end llm_profile_id propagation from API deployment to workflow execution - Implement profile-based tool settings override in structure tool with detailed change tracking - Add ownership validation to ensure only profile owners can use their profiles - Fix platform service helper to use correct profile_id column name - Update SDK integration with profile support branch and AWS dependencies - Add comprehensive logging for profile propagation and override debugging - Enhance structure tool with profile override methods and change reporting - Propagate llm_profile_id through FileData, workflow execution, and metadata storage - Add profile override mapping for chunk settings, LLM, embedding, vector DB, and x2text adapters - Include detailed before/after logging for tool metadata changes This enables dynamic tool configuration based on user-defined LLM profiles, allowing users to override tool settings like LLM models, embeddings, and processing parameters at runtime while maintaining backward compatibility and comprehensive audit logging. * removed unwanted file * pr comment fixes * added llm id below to name and moved copy button * moved llm profile id ownership validation to serializer * pr comment fixes and removed unwanted code in frontend sonar fix * sdk version bump up * Commit uv.lock changes * sdk version bump up in other places * Commit uv.lock changes



Note:-
What
Implemented end-to-end LLM Profile ID propagation from API deployment to workflow
execution with profile-based tool settings override. Structure tool now dynamically
applies profile configurations for LLM, embedding, vector DB, and processing parameters
based on user-defined profiles.
Key features:
Why
Solved critical workflow configuration issues:
This enables users to create profiles once and apply them consistently across
executions, improving workflow reliability and development efficiency.
How
Profile ID Propagation Chain:
API Request → Deployment Helper → Workflow Execution → File Processing → Metadata Storage
Key Implementation Points:
Files Modified:
Security: Profile ownership validation prevents unauthorized profile usage
Logging: Detailed change tracking shows exactly what overrides were applied
Compatibility: All changes optional, preserving existing workflow functionality
Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
Database Migrations
Env Config
Relevant Docs
Related Issues or PRs
Dependencies Versions
Notes on Testing
Screenshots
Checklist
I have read and understood the Contribution Guidelines.