An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
style: apply prettier formatting
Yoshiki Miura864768461e0c
diff --git a/lib/agents/researcher.ts b/lib/agents/researcher.tsindex c98936af..0f90dd54 100644--- a/lib/agents/researcher.ts+++ b/lib/agents/researcher.ts@@ -100,7 +100,7 @@ export function researcher({// Build activeTools array based on available toolstype ToolNames = keyof typeof toolsconst activeToolsList: ToolNames[] = ['search', 'fetch']-+if (writer && 'todoWrite' in todoTools) {activeToolsList.push('todoWrite' as ToolNames, 'todoRead' as ToolNames)}diff --git a/lib/streaming/create-chat-stream-response.ts b/lib/streaming/create-chat-stream-response.tsindex 3a43107f..d52844b9 100644--- a/lib/streaming/create-chat-stream-response.ts+++ b/lib/streaming/create-chat-stream-response.ts@@ -29,15 +29,8 @@ const DEFAULT_CHAT_TITLE = 'Untitled'export async function createChatStreamResponse(config: BaseStreamConfig): Promise<Response> {- const {- message,- model,- chatId,- userId,- trigger,- messageId,- abortSignal- } = config+ const { message, model, chatId, userId, trigger, messageId, abortSignal } =+ configconst modelId = `${model.providerId}:${model.id}`// Verify that chatId is provided