Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat: optimize conversation title generation output must be a valid JSON (#1077)
takatost4c8608dc6143
diff --git a/api/core/prompt/prompts.py b/api/core/prompt/prompts.pyindex 971c822e850..a26874d325f 100644--- a/api/core/prompt/prompts.py+++ b/api/core/prompt/prompts.py@@ -3,6 +3,7 @@ CONVERSATION_TITLE_PROMPT = """You need to decompose the user's input into "subjNotice: the language type user using is abundant, can be English, Chinese, Español, Arabic, Japanese, and etc.MAKE SURE your output is the SAME language as the user's input!Your output is restricted only to: (Input language) Intention + Subject(short as possible)+Your output MUST be a valid JSON.Tip: When the user's question is directed at you (the language model), you can add an emoji to make it more fun.diff --git a/api/events/event_handlers/generate_conversation_name_when_first_message_created.py b/api/events/event_handlers/generate_conversation_name_when_first_message_created.pyindex 9e84e74a93a..4176f9dbbb7 100644--- a/api/events/event_handlers/generate_conversation_name_when_first_message_created.py+++ b/api/events/event_handlers/generate_conversation_name_when_first_message_created.py@@ -26,7 +26,7 @@ def handle(sender, **kwargs):conversation.name = nameexcept:- conversation.name = 'New Chat'+ conversation.name = 'New conversation'db.session.add(conversation)db.session.commit()