Skip to content

An AI-powered search engine with a generative UI

refactor: Remove unnecessary code in researcher.tsx

Yoshiki Miuradc889417c489
diff --git a/lib/agents/researcher.tsx b/lib/agents/researcher.tsx
index 92a5a996..7ca6a921 100644
--- a/lib/agents/researcher.tsx
+++ b/lib/agents/researcher.tsx
@@ -40,8 +40,7 @@ export async function researcher(
tools: getTools({
uiStream,
fullResponse
- }),
- toolChoice: 'required'
+ })
}).catch(err => {
hasError = true
fullResponse = 'Error: ' + err.message