Spaces:
Paused
Paused
Soham Waghmare
commited on
Commit
·
e8287ed
1
Parent(s):
e5a2f39
feat: add params to request
Browse files
frontend/src/components/ChatInterface.tsx
CHANGED
|
@@ -44,6 +44,9 @@ const ChatInterface = () => {
|
|
| 44 |
depth: "basic",
|
| 45 |
sources: true,
|
| 46 |
citations: false,
|
|
|
|
|
|
|
|
|
|
| 47 |
});
|
| 48 |
|
| 49 |
const userInputRef = useRef<HTMLTextAreaElement>(null);
|
|
@@ -226,6 +229,9 @@ const ChatInterface = () => {
|
|
| 226 |
const socket = getSocket();
|
| 227 |
socket.emit("start_research", {
|
| 228 |
topic: content,
|
|
|
|
|
|
|
|
|
|
| 229 |
});
|
| 230 |
} catch (error) {
|
| 231 |
setChatState((prevState) => ({
|
|
|
|
| 44 |
depth: "basic",
|
| 45 |
sources: true,
|
| 46 |
citations: false,
|
| 47 |
+
max_depth: 2,
|
| 48 |
+
max_breadth: 3,
|
| 49 |
+
num_sites_per_query: 5,
|
| 50 |
});
|
| 51 |
|
| 52 |
const userInputRef = useRef<HTMLTextAreaElement>(null);
|
|
|
|
| 229 |
const socket = getSocket();
|
| 230 |
socket.emit("start_research", {
|
| 231 |
topic: content,
|
| 232 |
+
max_depth: researchOptions.max_depth,
|
| 233 |
+
max_breadth: researchOptions.max_breadth,
|
| 234 |
+
num_sites_per_query: researchOptions.num_sites_per_query,
|
| 235 |
});
|
| 236 |
} catch (error) {
|
| 237 |
setChatState((prevState) => ({
|