fraudTech commited on
Commit
e19b076
·
1 Parent(s): 8eb2fc6

Remove 'Thinking...' and 'Generating...' messages from backend responses

Browse files
Files changed (1) hide show
  1. src/App.js +0 -25
src/App.js CHANGED
@@ -756,31 +756,6 @@ function App() {
756
  disabled={loading}
757
  rows="2"
758
  />
759
- {loading && (() => {
760
- const lastMsg = messages[messages.length - 1];
761
- const isStillThinking = lastMsg && lastMsg.role === 'assistant' && lastMsg.thinking;
762
- let statusText = 'Generating...';
763
- if (isStillThinking) {
764
- statusText = 'Thinking...';
765
- } else if (isValidating) {
766
- statusText = 'Validating...';
767
- }
768
- return (
769
- <div style={{
770
- display: 'flex',
771
- alignItems: 'center',
772
- gap: '8px',
773
- marginLeft: '12px',
774
- color: '#a0a0a0',
775
- fontSize: '0.9em'
776
- }}>
777
- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" style={{ animation: "spin 1s linear infinite" }}>
778
- <path d="M21 12a9 9 0 1 1-6.219-8.56"/>
779
- </svg>
780
- <span>{statusText}</span>
781
- </div>
782
- );
783
- })()}
784
  </form>
785
  </main>
786
  {/* Right Sidebar - Direct Query Panel */}
 
756
  disabled={loading}
757
  rows="2"
758
  />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
759
  </form>
760
  </main>
761
  {/* Right Sidebar - Direct Query Panel */}