Skip to content

Commit

Permalink
Merge branch 'langgenius:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
leslie2046 authored Apr 30, 2024
2 parents 6c4b304 + d126370 commit 62ae80f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions api/core/tools/provider/builtin/judge0ce/tools/executeCode.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/app/chat/answer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ const Answer: FC<IAnswerProps> = ({
{!item.isOpeningStatement && (
<CopyBtn
value={content}
className={cn(s.copyBtn, 'mr-1')}
className='mr-1'
/>
)}
{((isShowPromptLog && !isResponding) || (!item.isOpeningStatement && isShowTextToSpeech)) && (
Expand Down
3 changes: 1 addition & 2 deletions web/app/components/base/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string> = {
Expand Down Expand Up @@ -113,7 +112,7 @@ export function Markdown(props: { content: string; className?: string }) {
/>
}
<CopyBtn
className={cn(s.copyBtn, 'mr-1')}
className='mr-1'
value={String(children).replace(/\n$/, '')}
isPlain
/>
Expand Down

0 comments on commit 62ae80f

Please sign in to comment.