Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified src/app/favicon.ico
100644 β†’ 100755
Empty file.
Empty file modified src/app/globals.css
100644 β†’ 100755
Empty file.
Empty file modified src/app/layout.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/app/page.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/IndexForm.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/IndexPicker.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/IndexWizard.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/LandingMenu.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/Markdown.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ModelSelect.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/SessionIndexInfo.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/demo.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/AccordionGroup.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/GlassInput.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/GlassSelect.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/GlassToggle.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/InfoTooltip.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/avatar.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/badge.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/button.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/chat-bubble-demo.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/chat-bubble.tsx
100644 β†’ 100755
Empty file.
3 changes: 2 additions & 1 deletion src/components/ui/chat-input.tsx
100644 β†’ 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useState, useRef } from "react"
import { ArrowUp, Settings as SettingsIcon, Plus, X, FileText } from "lucide-react"
import { Button } from "@/components/ui/button"
import { AttachedFile } from "@/lib/types"
import { generateUUID } from "@/lib/api"

interface ChatInputProps {
onSendMessage: (message: string, attachedFiles?: AttachedFile[]) => Promise<void>
Expand Down Expand Up @@ -103,7 +104,7 @@ export function ChatInput({
file.name.toLowerCase().endsWith('.md') ||
file.name.toLowerCase().endsWith('.txt')) {
newFiles.push({
id: crypto.randomUUID(),
id: generateUUID(),
name: file.name,
size: file.size,
type: file.type,
Expand Down
Empty file modified src/components/ui/chat-settings-modal.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/conversation-page.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/dropdown-menu.tsx
100644 β†’ 100755
Empty file.
3 changes: 2 additions & 1 deletion src/components/ui/empty-chat-state.tsx
100644 β†’ 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
FileText,
} from "lucide-react";
import { AttachedFile } from "@/lib/types";
import { generateUUID } from "@/lib/api"

interface UseAutoResizeTextareaProps {
minHeight: number;
Expand Down Expand Up @@ -129,7 +130,7 @@ export function EmptyChatState({
file.name.toLowerCase().endsWith('.md') ||
file.name.toLowerCase().endsWith('.txt')) {
newFiles.push({
id: crypto.randomUUID(),
id: generateUUID(),
name: file.name,
size: file.size,
type: file.type,
Expand Down
Empty file modified src/components/ui/localgpt-chat.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/message-loading.tsx
100644 β†’ 100755
Empty file.
6 changes: 3 additions & 3 deletions src/components/ui/quick-chat.tsx
100644 β†’ 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { useState, useEffect } from 'react';
import { ChatInput } from '@/components/ui/chat-input';
import { chatAPI, ChatMessage } from '@/lib/api';
import { chatAPI, ChatMessage, generateUUID } from '@/lib/api';
import { ConversationPage } from '@/components/ui/conversation-page';
import { ChatSettingsModal } from '@/components/ui/chat-settings-modal';

Expand Down Expand Up @@ -59,7 +59,7 @@ export function QuickChat({ sessionId: externalSessionId, onSessionChange, class
if (!content.trim()) return;

const userMsg: ChatMessage = {
id: crypto.randomUUID(),
id: generateUUID(),
content,
sender: 'user',
timestamp: new Date().toISOString(),
Expand Down Expand Up @@ -88,7 +88,7 @@ export function QuickChat({ sessionId: externalSessionId, onSessionChange, class
const resp = await api.sendMessage({ message: content, conversation_history: history, model: selectedModel });

const assistantMsg: ChatMessage = {
id: crypto.randomUUID(),
id: generateUUID(),
content: resp.response,
sender: 'assistant',
timestamp: new Date().toISOString(),
Expand Down
Empty file modified src/components/ui/scroll-area.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/separator.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/session-chat.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/session-sidebar.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/sidebar.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/skeleton.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/components/ui/textarea.tsx
100644 β†’ 100755
Empty file.
Empty file modified src/lib/api.ts
100644 β†’ 100755
Empty file.
Empty file modified src/lib/types.ts
100644 β†’ 100755
Empty file.
Empty file modified src/lib/utils.ts
100644 β†’ 100755
Empty file.
Empty file modified src/test-upload.html
100644 β†’ 100755
Empty file.
Empty file modified src/utils/textNormalization.ts
100644 β†’ 100755
Empty file.