Skip to content

Commit

Permalink
4.8.13 test (#3107)
Browse files Browse the repository at this point in the history
* perf: select file

* perf: drop files

* fix: imple mode adapt files
  • Loading branch information
c121914yu authored Nov 9, 2024
1 parent 044b0c5 commit 608e58b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export const runToolWithToolChoice = async (
},
toolModel
);
// console.log(JSON.stringify(requestMessages, null, 2), '==requestBody');
// console.log(JSON.stringify(requestBody, null, 2), '==requestBody');
/* Run llm */
const ai = getAIApi({
timeout: 480000
Expand Down
1 change: 1 addition & 0 deletions packages/web/i18n/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"cron.every_month": "Run Monthly",
"cron.every_week": "Run Weekly",
"cron.interval": "Run at Intervals",
"dataset_search_tool_description": "Call the \"Semantic Search\" and \"Full-text Search\" capabilities to find reference content that may be related to the problem from the \"Knowledge Base\". \nPrioritize calling this tool to assist in answering user questions.",
"day": "Day",
"document_quote": "Document Reference",
"document_quote_tip": "Usually used to accept user-uploaded document content (requires document parsing), and can also be used to reference other string data.",
Expand Down
1 change: 1 addition & 0 deletions packages/web/i18n/zh/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"cron.every_month": "每月执行",
"cron.every_week": "每周执行",
"cron.interval": "间隔执行",
"dataset_search_tool_description": "调用“语义检索”和“全文检索”能力,从“知识库”中查找可能与问题相关的参考内容。优先调用该工具来辅助回答用户的问题。",
"day": "",
"document_quote": "文档引用",
"document_quote_tip": "通常用于接受用户上传的文档内容(这需要文档解析),也可以用于引用其他字符串数据。",
Expand Down
6 changes: 3 additions & 3 deletions projects/app/src/web/core/app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function form2AppWorkflow(
},
{
...Input_Template_File_Link_Prompt,
value: [workflowStartNodeId, NodeOutputKeyEnum.userFiles]
value: [[workflowStartNodeId, NodeOutputKeyEnum.userFiles]]
},
{
key: NodeInputKeyEnum.aiChatVision,
Expand All @@ -198,7 +198,7 @@ export function form2AppWorkflow(
return {
nodeId: datasetNodeId,
name: t(DatasetSearchModule.name),
intro: t(DatasetSearchModule.intro),
intro: t('app:dataset_search_tool_description'),
avatar: DatasetSearchModule.avatar,
flowNodeType: DatasetSearchModule.flowNodeType,
showStatus: true,
Expand Down Expand Up @@ -451,7 +451,7 @@ export function form2AppWorkflow(
},
{
...Input_Template_File_Link_Prompt,
value: [workflowStartNodeId, NodeOutputKeyEnum.userFiles]
value: [[workflowStartNodeId, NodeOutputKeyEnum.userFiles]]
},
{
key: 'userChatInput',
Expand Down

0 comments on commit 608e58b

Please sign in to comment.