From 365f495ce60eefb3b643a6ef77ae25a0c62a6c61 Mon Sep 17 00:00:00 2001 From: dmolinari Date: Fri, 5 Dec 2025 14:09:55 -0300 Subject: [PATCH] Fix: Variables sin uso --- chatbot-admin/src/components/SystemPromptManager.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chatbot-admin/src/components/SystemPromptManager.tsx b/chatbot-admin/src/components/SystemPromptManager.tsx index 6e9bb7f..cfff351 100644 --- a/chatbot-admin/src/components/SystemPromptManager.tsx +++ b/chatbot-admin/src/components/SystemPromptManager.tsx @@ -12,7 +12,7 @@ import AddIcon from '@mui/icons-material/Add'; import SendIcon from '@mui/icons-material/Send'; import apiClient from '../api/apiClient'; import ReactMarkdown from 'react-markdown'; -import rehypeSanitize, { defaultSchema } from 'rehype-sanitize'; +import rehypeSanitize from 'rehype-sanitize'; interface SystemPrompt { id: number; @@ -159,8 +159,6 @@ const SystemPromptManager: React.FC = ({ onAuthError } setChatHistory(prev => [...prev, { role: 'bot', text: '' }]); - let isFirstChunk = true; - while (true) { const { done, value } = await reader.read();