mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 14:31:35 +08:00
done
This commit is contained in:
parent
d5ae3e6edc
commit
49eec68434
@ -87,7 +87,7 @@ export const CodeBlockView: React.FC<Props> = memo(({ children, language, onSave
|
||||
const [tools, setTools] = useState<ActionTool[]>([])
|
||||
|
||||
const isExecutable = useMemo(() => {
|
||||
const executableLanguages = ['python', 'javascript', 'js', 'typescript', 'ts']
|
||||
const executableLanguages = ['python', 'py', 'javascript', 'js']
|
||||
return codeExecution.enabled && executableLanguages.includes(language.toLowerCase())
|
||||
}, [codeExecution.enabled, language])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user