Spaces:
Running
Running
bigwolfe
commited on
Commit
·
750639c
1
Parent(s):
1f5b714
feature complete but buggy
Browse files
frontend/src/components/ChatMessage.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import { ChatMessage as ChatMessageType } from '@/types/rag';
|
| 2 |
import { cn } from '@/lib/utils';
|
| 3 |
import { User, Bot } from 'lucide-react';
|
| 4 |
import { SourceList } from './SourceList';
|
|
|
|
| 1 |
+
import type { ChatMessage as ChatMessageType } from '@/types/rag';
|
| 2 |
import { cn } from '@/lib/utils';
|
| 3 |
import { User, Bot } from 'lucide-react';
|
| 4 |
import { SourceList } from './SourceList';
|
frontend/src/components/ChatPanel.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { Button } from '@/components/ui/button';
|
|
| 4 |
import { Textarea } from '@/components/ui/textarea';
|
| 5 |
import { ChatMessage } from './ChatMessage';
|
| 6 |
import { sendChat } from '@/services/rag';
|
| 7 |
-
import { ChatMessage as ChatMessageType } from '@/types/rag';
|
| 8 |
import { useToast } from '@/hooks/useToast';
|
| 9 |
|
| 10 |
interface ChatPanelProps {
|
|
|
|
| 4 |
import { Textarea } from '@/components/ui/textarea';
|
| 5 |
import { ChatMessage } from './ChatMessage';
|
| 6 |
import { sendChat } from '@/services/rag';
|
| 7 |
+
import type { ChatMessage as ChatMessageType } from '@/types/rag';
|
| 8 |
import { useToast } from '@/hooks/useToast';
|
| 9 |
|
| 10 |
interface ChatPanelProps {
|
frontend/src/components/SourceList.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import { SourceReference } from '@/types/rag';
|
| 2 |
import { FileText, ExternalLink } from 'lucide-react';
|
| 3 |
import { useState } from 'react';
|
| 4 |
import { cn } from '@/lib/utils';
|
|
|
|
| 1 |
+
import type { SourceReference } from '@/types/rag';
|
| 2 |
import { FileText, ExternalLink } from 'lucide-react';
|
| 3 |
import { useState } from 'react';
|
| 4 |
import { cn } from '@/lib/utils';
|
frontend/src/services/rag.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import { ChatRequest, ChatResponse, StatusResponse } from '@/types/rag';
|
| 2 |
import { apiFetch } from './api';
|
| 3 |
|
| 4 |
export async function sendChat(request: ChatRequest): Promise<ChatResponse> {
|
|
|
|
| 1 |
+
import type { ChatRequest, ChatResponse, StatusResponse } from '@/types/rag';
|
| 2 |
import { apiFetch } from './api';
|
| 3 |
|
| 4 |
export async function sendChat(request: ChatRequest): Promise<ChatResponse> {
|