Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/application/serializers/application_chat_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def reset_chat_record(chat_record, show_source, show_exec):
'padding_problem_text': chat_record.details.get('problem_padding').get(
'padding_problem_text') if 'problem_padding' in chat_record.details else None,
**(show_source_dict if show_source else {}),
**(show_exec_dict if show_exec else show_exec_dict)
**show_exec_dict

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if 和 else 是同一个值,所以去掉 if else

}

def page(self, current_page: int, page_size: int, with_valid=True, show_source=None, show_exec=None):
Expand Down
2 changes: 1 addition & 1 deletion apps/chat/mcp/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _get_chat_id(self):
}).open()

def call_tool(self, params):
name = params["name"]
# name = params["name"]
args = params.get("arguments", {})
# print(params)

Expand Down
1 change: 0 additions & 1 deletion apps/chat/serializers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ def get_chat_record(chat_info, chat_record_id):
chat_record = QuerySet(ChatRecord).filter(id=chat_record_id, chat_id=chat_info.chat_id).first()
if chat_record is None:
raise ChatException(500, _("Conversation record does not exist"))

return chat_record
chat_record = QuerySet(ChatRecord).filter(id=chat_record_id).first()
return chat_record
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/execution-detail-card/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
{{ $t('aiChat.executionDetails.currentChat') }}
</h5>
<div class="p-8-12 border-t-dashed lighter pre-wrap">
{{ data.question || '-' }}
{{ data.question || data.user_input || '-' }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

意图识别 节点的用户输入为 data.user_input,不是 data.question

</div>
</div>
<div class="card-never border-r-6 mt-8">
Expand Down
6 changes: 3 additions & 3 deletions ui/src/locales/lang/en-US/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ You are a master of problem optimization, adept at accurately inferring user int
##Skills
###Skill 1: Optimizing Problems
2. Receive user input questions.
3. Carefully analyze the meaning of the problem based on the context.
4. Output optimized problems.
1. Receive user input questions.
2. Carefully analyze the meaning of the problem based on the context.
3. Output optimized problems.
##Limitations:
-Only return the optimized problem without any additional explanation or clarification.
Expand Down
6 changes: 3 additions & 3 deletions ui/src/locales/lang/zh-CN/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ export default {

## 技能
### 技能 1: 优化问题
2. 接收用户输入的问题。
3. 依据上下文仔细分析问题含义。
4. 输出优化后的问题。
1. 接收用户输入的问题。
2. 依据上下文仔细分析问题含义。
3. 输出优化后的问题。

## 限制:
- 仅返回优化后的问题,不进行额外解释或说明。
Expand Down
6 changes: 3 additions & 3 deletions ui/src/locales/lang/zh-Hant/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ export default {
## 技能
### 技能 1: 優化問題
2. 接收用戶輸入的問題。
3. 依據上下文仔細分析問題含義。
4. 輸出優化後的問題。
1. 接收用戶輸入的問題。
2. 依據上下文仔細分析問題含義。
3. 輸出優化後的問題。
## 限制:
- 僅返回優化後的問題,不進行額外解釋或說明。
Expand Down
Loading