fix agent instructions and up char limit
This commit is contained in:
parent
cc8b16458e
commit
a02e500183
2 changed files with 3 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ export const DEFAULT_KNOWLEDGE_SETTINGS = {
|
||||||
* UI Constants
|
* UI Constants
|
||||||
*/
|
*/
|
||||||
export const UI_CONSTANTS = {
|
export const UI_CONSTANTS = {
|
||||||
MAX_SYSTEM_PROMPT_CHARS: 2000,
|
MAX_SYSTEM_PROMPT_CHARS: 4000,
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const ANIMATION_DURATION = 0.4;
|
export const ANIMATION_DURATION = 0.4;
|
||||||
|
|
|
||||||
|
|
@ -622,11 +622,9 @@ class FlowsService:
|
||||||
if not LANGFLOW_CHAT_FLOW_ID:
|
if not LANGFLOW_CHAT_FLOW_ID:
|
||||||
raise ValueError("LANGFLOW_CHAT_FLOW_ID is not configured")
|
raise ValueError("LANGFLOW_CHAT_FLOW_ID is not configured")
|
||||||
|
|
||||||
# Determine target component IDs based on provider
|
# The system_prompt field is in the Agent component, not the Language Model component
|
||||||
target_agent_id = self._get_provider_component_ids(provider)[1]
|
|
||||||
|
|
||||||
await self._update_flow_field(LANGFLOW_CHAT_FLOW_ID, "system_prompt", system_prompt,
|
await self._update_flow_field(LANGFLOW_CHAT_FLOW_ID, "system_prompt", system_prompt,
|
||||||
node_display_name=target_agent_id)
|
node_display_name="Agent")
|
||||||
|
|
||||||
async def update_flow_docling_preset(self, preset: str, preset_config: dict):
|
async def update_flow_docling_preset(self, preset: str, preset_config: dict):
|
||||||
"""Helper function to update docling preset in the ingest flow"""
|
"""Helper function to update docling preset in the ingest flow"""
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue