Skip to content

An AI-powered search engine with a generative UI

style: apply prettier formatting

Yoshiki Miura864768461e0c
diff --git a/lib/agents/researcher.ts b/lib/agents/researcher.ts
index 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 tools
type ToolNames = keyof typeof tools
const 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.ts
index 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 } =
+ config
const modelId = `${model.providerId}:${model.id}`
// Verify that chatId is provided