Merge pull request #348 from langflow-ai/agent-prompt
fix agent instructions and up char limit
This commit is contained in:
commit
1d6d874682
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue