From 0704fe9695e1a74ce6fe7a7ba5719cd6f4d3cae0 Mon Sep 17 00:00:00 2001 From: Rhon Joe Date: Tue, 30 Apr 2024 14:55:57 +0800 Subject: [PATCH 1/2] fix(web): copy button visible at chat page normally (#4005) Co-authored-by: rongjun.qiu --- web/app/components/app/chat/answer/index.tsx | 2 +- web/app/components/base/markdown.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/app/components/app/chat/answer/index.tsx b/web/app/components/app/chat/answer/index.tsx index f96c91d57b39f3..49dd817255b084 100644 --- a/web/app/components/app/chat/answer/index.tsx +++ b/web/app/components/app/chat/answer/index.tsx @@ -362,7 +362,7 @@ const Answer: FC = ({ {!item.isOpeningStatement && ( )} {((isShowPromptLog && !isResponding) || (!item.isOpeningStatement && isShowTextToSpeech)) && ( diff --git a/web/app/components/base/markdown.tsx b/web/app/components/base/markdown.tsx index be1a45476a20be..054ae04f6f831c 100644 --- a/web/app/components/base/markdown.tsx +++ b/web/app/components/base/markdown.tsx @@ -12,7 +12,6 @@ import cn from 'classnames' import CopyBtn from '@/app/components/app/chat/copy-btn' import SVGBtn from '@/app/components/app/chat/svg' import Flowchart from '@/app/components/app/chat/mermaid' -import s from '@/app/components/app/chat/style.module.css' // Available language https://github.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/AVAILABLE_LANGUAGES_HLJS.MD const capitalizationLanguageNameMap: Record = { @@ -113,7 +112,7 @@ export function Markdown(props: { content: string; className?: string }) { /> } From d1263700c00be4cd8c35596e0c54e84a79ed18c8 Mon Sep 17 00:00:00 2001 From: Richards Tu <142148415+richards199999@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:58:29 +0800 Subject: [PATCH 2/2] Update the description and labels in Judge0ce tool (#3990) Co-authored-by: crazywoola <427733928@qq.com> --- .../provider/builtin/judge0ce/tools/executeCode.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/core/tools/provider/builtin/judge0ce/tools/executeCode.yaml b/api/core/tools/provider/builtin/judge0ce/tools/executeCode.yaml index e36efbcb55cc6d..d2d89b419c325f 100644 --- a/api/core/tools/provider/builtin/judge0ce/tools/executeCode.yaml +++ b/api/core/tools/provider/builtin/judge0ce/tools/executeCode.yaml @@ -1,14 +1,14 @@ identity: - name: submitCodeExecutionTask + name: executeCode author: Richards Tu label: - en_US: Submit Code Execution Task - zh_Hans: 提交代码执行任务 + en_US: Submit Code Execution Task to Judge0 CE and get execution result. + zh_Hans: 提交代码执行任务到 Judge0 CE 并获取执行结果。 description: human: - en_US: A tool for submitting code execution task to Judge0 CE. - zh_Hans: 一个用于向 Judge0 CE 提交代码执行任务的工具。 - llm: A tool for submitting a new code execution task to Judge0 CE. It takes in the source code, language ID, standard input (optional), expected output (optional), and additional files (optional) as parameters; and returns a unique token representing the submission. + en_US: A tool for executing code and getting the result. + zh_Hans: 一个用于执行代码并获取结果的工具。 + llm: This tool is used for executing code and getting the result. parameters: - name: source_code type: string