Fix: Variables sin uso
This commit is contained in:
@@ -12,7 +12,7 @@ import AddIcon from '@mui/icons-material/Add';
|
|||||||
import SendIcon from '@mui/icons-material/Send';
|
import SendIcon from '@mui/icons-material/Send';
|
||||||
import apiClient from '../api/apiClient';
|
import apiClient from '../api/apiClient';
|
||||||
import ReactMarkdown from 'react-markdown';
|
import ReactMarkdown from 'react-markdown';
|
||||||
import rehypeSanitize, { defaultSchema } from 'rehype-sanitize';
|
import rehypeSanitize from 'rehype-sanitize';
|
||||||
|
|
||||||
interface SystemPrompt {
|
interface SystemPrompt {
|
||||||
id: number;
|
id: number;
|
||||||
@@ -159,8 +159,6 @@ const SystemPromptManager: React.FC<SystemPromptManagerProps> = ({ onAuthError }
|
|||||||
|
|
||||||
setChatHistory(prev => [...prev, { role: 'bot', text: '' }]);
|
setChatHistory(prev => [...prev, { role: 'bot', text: '' }]);
|
||||||
|
|
||||||
let isFirstChunk = true;
|
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
const { done, value } = await reader.read();
|
const { done, value } = await reader.read();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user