Merge pull request #348 from langflow-ai/agent-prompt

fix agent instructions and up char limit
This commit is contained in:
Mike Fortman 2025-11-04 13:13:21 -06:00 committed by GitHub
commit 1d6d874682
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ export const DEFAULT_KNOWLEDGE_SETTINGS = {
* UI Constants
*/
export const UI_CONSTANTS = {
MAX_SYSTEM_PROMPT_CHARS: 2000,
MAX_SYSTEM_PROMPT_CHARS: 4000,
} as const;
export const ANIMATION_DURATION = 0.4;

View file

@ -230,7 +230,7 @@ async def update_settings(request, session_manager):
flows_service = _get_flows_service()
await flows_service.update_chat_flow_system_prompt(
body["system_prompt"],
current_config.provider.model_provider.lower()
current_config.agent.system_prompt
)
logger.info(f"Successfully updated chat flow system prompt")
except Exception as e: