diff --git a/src/app/api/chat/route.ts b/src/app/api/chat/route.ts
index 68f346b..3a17bcf 100644
--- a/src/app/api/chat/route.ts
+++ b/src/app/api/chat/route.ts
@@ -425,6 +425,7 @@ export const POST = async (req: Request) => {
}),
),
);
+ writer.close();
cleanupCancelToken(message.messageId);
});
diff --git a/src/components/MessageBox.tsx b/src/components/MessageBox.tsx
index 793ff8f..c28686e 100644
--- a/src/components/MessageBox.tsx
+++ b/src/components/MessageBox.tsx
@@ -93,7 +93,7 @@ const MessageBox = ({
) : (
<>
-
+
{message.content}
,
},
- {
- key: 'balanced',
- title: 'Balanced',
- description:
- 'Find the right balance between speed and accuracy. Medium effort retrieving web content.',
- icon: ,
- },
+ // {
+ // key: 'balanced',
+ // title: 'Balanced',
+ // description:
+ // 'Find the right balance between speed and accuracy. Medium effort retrieving web content.',
+ // icon: ,
+ // },
// {
// key: 'quality',
// title: 'Quality',
diff --git a/src/lib/agents/webSearchAgent.ts b/src/lib/agents/webSearchAgent.ts
index cf2a7ce..de973b9 100644
--- a/src/lib/agents/webSearchAgent.ts
+++ b/src/lib/agents/webSearchAgent.ts
@@ -175,10 +175,10 @@ export class WebSearchAgent {
}),
);
- // Sort by relevance score and take top 8 results
+ // Sort by relevance score and take top 12 results
const previewContents: PreviewContent[] = resultsWithSimilarity
.sort((a, b) => b.similarity - a.similarity)
- .slice(0, 8)
+ .slice(0, 12)
.map(({ result }) => ({
title: result.title || 'Untitled',
snippet: result.content || '',
@@ -301,7 +301,7 @@ export class WebSearchAgent {
// Summarize the top 2 search results
for (const result of resultsWithSimilarity
- .slice(0, 8)
+ .slice(0, 12)
.map((r) => r.result)) {
if (this.signal.aborted) {
console.warn('Search operation aborted by signal');