fix: Disable AI chat streaming to use working non-streaming endpoint
Some checks failed
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled

- Change useStreaming default from true to false
- Streaming endpoint has validation issues (conversationId format)
- Non-streaming endpoint works perfectly
- This fixes the 'Sorry, I encountered an error' message in AI chat

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-04 07:03:12 +00:00
parent e3de4cb875
commit 8aabd8fbbf
2 changed files with 2 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ export const AIChatInterface: React.FC = () => {
const [input, setInput] = useState(''); const [input, setInput] = useState('');
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
const [streamingMessage, setStreamingMessage] = useState(''); const [streamingMessage, setStreamingMessage] = useState('');
const [useStreaming, setUseStreaming] = useState(true); // Toggle for streaming const [useStreaming, setUseStreaming] = useState(false); // Disable streaming for now - using non-streaming endpoint
const [currentThinkingMessages, setCurrentThinkingMessages] = useState<string[]>([]); const [currentThinkingMessages, setCurrentThinkingMessages] = useState<string[]>([]);
const [currentThinkingIndex, setCurrentThinkingIndex] = useState(0); const [currentThinkingIndex, setCurrentThinkingIndex] = useState(0);
const [conversations, setConversations] = useState<Conversation[]>([]); const [conversations, setConversations] = useState<Conversation[]>([]);

File diff suppressed because one or more lines are too long