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
fix: in log page not show user query (#1140)
Joel5412f4aba5b5
diff --git a/web/app/components/app/configuration/config-var/index.tsx b/web/app/components/app/configuration/config-var/index.tsxindex 3e204bb46cb..6ca0f35624c 100644--- a/web/app/components/app/configuration/config-var/index.tsx+++ b/web/app/components/app/configuration/config-var/index.tsx@@ -52,13 +52,18 @@ const ConfigVar: FC<IConfigVarProps> = ({ promptVariables, readonly, onPromptVaronPromptVariablesChange?.(newPromptVariables)}- const batchUpdatePromptVariable = (key: string, updateKeys: string[], newValues: any[]) => {+ const batchUpdatePromptVariable = (key: string, updateKeys: string[], newValues: any[], isParagraph?: boolean) => {const newPromptVariables = promptVariables.map((item) => {if (item.key === key) {const newItem: any = { ...item }updateKeys.forEach((updateKey, i) => {newItem[updateKey] = newValues[i]})+ if (isParagraph) {+ delete newItem.max_length+ delete newItem.options+ }+ console.log(newItem)return newItem}@@ -247,9 +252,8 @@ const ConfigVar: FC<IConfigVarProps> = ({ promptVariables, readonly, onPromptVaronConfirm={({ type, value }) => {if (type === 'string')batchUpdatePromptVariable(currKey as string, ['type', 'max_length'], [type, value || DEFAULT_VALUE_MAX_LEN])-else- batchUpdatePromptVariable(currKey as string, ['type', 'options'], [type, value || []])+ batchUpdatePromptVariable(currKey as string, ['type', 'options'], [type, value || []], type === 'paragraph')hideEditModal()}}diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsxindex b1a217b0f4a..2c88c6f1594 100644--- a/web/app/components/app/log/list.tsx+++ b/web/app/components/app/log/list.tsx@@ -81,7 +81,7 @@ const getFormattedChatList = (messages: ChatMessage[]) => {messages.forEach((item: ChatMessage) => {newChatList.push({id: `question-${item.id}`,- content: item.query,+ content: item.inputs.query || item.query, // text generation: item.inputs.query; chat: item.queryisAnswer: false,})@@ -413,7 +413,7 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })<tbody className="text-gray-500">{logs.data.map((log) => {const endUser = log.from_end_user_session_id- const leftValue = get(log, isChatMode ? 'summary' : 'message.query')+ const leftValue = get(log, isChatMode ? 'summary' : 'message.inputs.query')const rightValue = get(log, isChatMode ? 'message_count' : 'message.answer')return <trkey={log.id}