This commit is contained in:
suyao 2025-10-09 08:46:07 +08:00
parent d5ae3e6edc
commit 49eec68434
No known key found for this signature in database

View File

@ -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])