Skip to content

An AI-powered search engine with a generative UI

feat: update prompt format and search configuration

Yoshiki Miura2720184b250b
diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx
index 5932cf35..51bb1694 100644
--- a/components/chat-panel.tsx
+++ b/components/chat-panel.tsx
@@ -1,8 +1,8 @@
'use client'
+import { useRouter } from 'next/navigation'
import { useCallback, useEffect, useRef, useState } from 'react'
import Textarea from 'react-textarea-autosize'
-import { useRouter } from 'next/navigation'
import { UseChatHelpers } from '@ai-sdk/react'
import { ArrowUp, ChevronDown, MessageCirclePlus, Square } from 'lucide-react'
@@ -12,13 +12,13 @@ import { UploadedFile } from '@/lib/types'
import type { UIDataTypes, UIMessage, UITools } from '@/lib/types/ai'
import { cn } from '@/lib/utils'
-import { useArtifact } from './artifact/artifact-context'
-import { Button } from './ui/button'
-import { IconLogo } from './ui/icons'
import { ActionButtons } from './action-buttons'
+import { useArtifact } from './artifact/artifact-context'
import { FileUploadButton } from './file-upload-button'
import { ModelTypeSelector } from './model-type-selector'
import { SearchModeSelector } from './search-mode-selector'
+import { Button } from './ui/button'
+import { IconLogo } from './ui/icons'
import { UploadedFileList } from './uploaded-file-list'
// Constants for timing delays
@@ -266,7 +266,7 @@ export function ChatPanel({
onClick={handleNewChat}
className="shrink-0 rounded-full group"
type="button"
- disabled={isLoading || isToolInvocationInProgress()}
+ disabled={isLoading}
>
<MessageCirclePlus className="size-4 group-hover:rotate-12 transition-all" />
</Button>
@@ -276,10 +276,7 @@ export function ChatPanel({
type={isLoading ? 'button' : 'submit'}
size={'icon'}
className={cn(isLoading && 'animate-pulse', 'rounded-full')}
- disabled={
- (input.length === 0 && !isLoading) ||
- isToolInvocationInProgress()
- }
+ disabled={input.length === 0 && !isLoading}
onClick={isLoading ? stop : undefined}
>
{isLoading ? <Square size={20} /> : <ArrowUp size={20} />}
diff --git a/config/models/cloud.json b/config/models/cloud.json
index e9f6c587..0924e75f 100644
--- a/config/models/cloud.json
+++ b/config/models/cloud.json
@@ -15,13 +15,14 @@
}
},
"quality": {
- "id": "anthropic/claude-sonnet-4",
- "name": "Claude Sonnet 4",
- "provider": "Vercel AI Gateway",
- "providerId": "gateway",
+ "id": "gpt-5",
+ "name": "GPT-5",
+ "provider": "OpenAI",
+ "providerId": "openai",
"providerOptions": {
- "gateway": {
- "order": ["anthropic", "bedrock", "vertex"]
+ "openai": {
+ "reasoningEffort": "medium",
+ "reasoningSummary": "auto"
}
}
}
diff --git a/lib/agents/researcher.ts b/lib/agents/researcher.ts
index 3215fbe0..1618f3f8 100644
--- a/lib/agents/researcher.ts
+++ b/lib/agents/researcher.ts
@@ -100,9 +100,9 @@ export function researcher({
activeToolsList.push('todoWrite', 'todoRead')
}
console.log(
- `[Researcher] Planning mode: maxSteps=30, tools=[${activeToolsList.join(', ')}]`
+ `[Researcher] Planning mode: maxSteps=50, tools=[${activeToolsList.join(', ')}]`
)
- maxSteps = 30
+ maxSteps = 50
searchTool = originalSearchTool
break
@@ -115,9 +115,9 @@ export function researcher({
activeToolsList.push('todoWrite', 'todoRead')
}
console.log(
- `[Researcher] Adaptive mode: maxSteps=20, tools=[${activeToolsList.join(', ')}]`
+ `[Researcher] Adaptive mode: maxSteps=50, tools=[${activeToolsList.join(', ')}]`
)
- maxSteps = 20
+ maxSteps = 50
searchTool = originalSearchTool
break
}