Skip to content

Commit 9f3bf87

Browse files
committed
Function: Add web search support
1 parent c7702db commit 9f3bf87

16 files changed

+342
-108
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"preview": "vite preview"
1717
},
1818
"dependencies": {
19-
"@ai-sdk/anthropic": "^1.2.2",
20-
"@ai-sdk/fireworks": "^0.2.2",
21-
"@ai-sdk/google": "^1.2.3",
22-
"@ai-sdk/openai": "^1.3.4",
23-
"@ai-sdk/togetherai": "^0.2.2",
19+
"@ai-sdk/anthropic": "^1.2.4",
20+
"@ai-sdk/fireworks": "^0.2.5",
21+
"@ai-sdk/google": "^1.2.5",
22+
"@ai-sdk/openai": "^1.3.6",
23+
"@ai-sdk/togetherai": "^0.2.5",
2424
"@openrouter/ai-sdk-provider": "^0.4.5",
25-
"ai": "^4.2.8",
25+
"ai": "^4.2.10",
2626
"axios": "^1.8.4",
2727
"dotenv": "^16.4.7",
2828
"katex": "^0.16.21",

pnpm-lock.yaml

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/chat/ChatHistoryList.tsx

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, useRef, useEffect } from 'react';
22
import { Conversation } from '../../types/chat';
3-
import { PlusCircle, MessageSquare, MoreVertical, Edit, Trash2, ChevronLeft, ChevronRight, AlertTriangle } from 'lucide-react';
3+
import { MessageSquare, MoreVertical, Edit, Trash2, ChevronLeft, ChevronRight, AlertTriangle, MessageSquarePlus, FolderPlus } from 'lucide-react';
44
import ContextMenu, { ContextMenuItem } from '../ui/ContextMenu';
55
import ConfirmDialog from '../ui/ConfirmDialog';
66

@@ -251,24 +251,22 @@ export const ChatHistoryList: React.FC<ChatHistoryListProps> = ({
251251
{isCollapsed ? <ChevronRight size={16} /> : <ChevronLeft size={16} />}
252252
</button>
253253

254-
<div className={`p-4 border-b border-gray-200 ${isCollapsed ? 'flex justify-center opacity-0 pointer-events-none' : ''}`}>
255-
{isCollapsed ? (
256-
<button
257-
onClick={onCreateNewChat}
258-
className="w-0 p-0 transition-colors bg-white border border-gray-300 rounded-full hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500"
259-
title="New Chat"
260-
aria-label="Create new chat"
261-
>
262-
</button>
263-
) : (
264-
<button
265-
onClick={onCreateNewChat}
266-
className="flex items-center justify-center w-full p-2 text-sm font-medium text-gray-700 transition-colors bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500"
267-
>
268-
<PlusCircle size={16} className="mr-2" />
269-
New Chat
270-
</button>
271-
)}
254+
<div className={`p-2 border-b border-gray-200 ${isCollapsed ? 'opacity-0 pointer-events-none' : 'flex justify-between items-center'}`}>
255+
<button
256+
onClick={onCreateNewChat}
257+
className="flex items-center justify-center p-2 text-sm font-medium text-gray-700 transition-colors bg-white border border-gray-300 rounded-md aspect-square hover:bg-gray-50 checked:outline-none checked:ring-2 checked:ring-blue-500"
258+
>
259+
<FolderPlus size={16}/>
260+
</button>
261+
262+
<button
263+
onClick={onCreateNewChat}
264+
className="flex items-center justify-center gap-1 p-2 text-sm font-medium text-gray-700 transition-colors bg-white border border-gray-300 rounded-md hover:bg-gray-50 checked:outline-none checked:ring-2 checked:ring-blue-500"
265+
>
266+
<MessageSquarePlus size={16}/>
267+
<span className="text-sm">New Chat</span>
268+
</button>
269+
272270
</div>
273271

274272
<div className="flex-1 overflow-y-auto">

0 commit comments

Comments
 (0)