Feature/configurable system prompt master - #332
Merged
Conversation
…stem_prompt from project metadata_json in get_llm_output and get_all_llm_output - Fall back to default prompt when not provided - Accept optional system_prompt in chat_output endpoint - Add missing DB fields: max_Draft_tasks_per_user, max_Skipped_tasks_per_user, preferred_annotators
aparna-aa
approved these changes
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the Configurable System Prompt feature for LLM models and fixes several related interaction bugs. The changes have been strictly cherry-picked to target
masterand exclude unrelateddevhistory.Key Changes
project.metadata_json.system_promptto allow per-model overrides.get_all_llm_outputto fallback toproject_metadata.get("models_set")whentask["models_to_run"]is empty.get_all_model_output, bubbling up empty interactions instead of throwing uncaught exceptions.json.loadssafely handles empty strings ("") in task interaction endpoints to prevent runtime errors.DEFAULT_SYSTEM_PROMPTto use grammatically correct punctuation.Issue Linked
Fixes issues regarding hardcoded system prompts and application crashes when dealing with missing model responses or empty interactions arrays.
Verification