- {state.retrieve.state !== null && (
-
-
+
+
+ {state.retrieve.state !== null && (
+
-
- {state.retrieve.state === "inprogress"
- ? "Searching..."
- : "Search completed"}
-
-
-
- )}
-
- {state.analyze.state !== null && (
-
-
+ {state.retrieve.state === "inprogress"
+ ? "Searching..."
+ : "Search completed"}
+
+ )}
+ {state.analyze.state !== null && (
+
-
- {state.analyze.state === "inprogress"
- ? "Analyzing..."
- : "Analysis"}
-
-
- {state.analyze.questions.length > 0 && (
-
- {state.analyze.questions.map((question: QuestionState) => (
-
-
-
-
- {stateIcon[question.state]}
-
-
- {question.question}
-
-
+ {state.analyze.state === "inprogress" ? "Analyzing..." : "Analysis"}
+
+ )}
+
+
+
+ {state.analyze.questions.length > 0 && (
+
+ {state.analyze.questions.map((question: QuestionState) => (
+
+
+
+
+ {stateIcon[question.state]}
-
- {question.answer && (
-
-
-
-
-
- )}
-
- ))}
-
- )}
-
- )}
-
+
+ {question.question}
+
+
+
+ {question.answer && (
+
+
+
+ )}
+
+ ))}
+
+ )}
+
+
);
}
diff --git a/templates/types/streaming/nextjs/package.json b/templates/types/streaming/nextjs/package.json
index 1887356dc..80612d9e5 100644
--- a/templates/types/streaming/nextjs/package.json
+++ b/templates/types/streaming/nextjs/package.json
@@ -12,6 +12,7 @@
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@e2b/code-interpreter": "^1.0.4",
+ "@radix-ui/react-accordion": "^1.2.2",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-slot": "^1.0.2",
@@ -19,7 +20,7 @@
"@llamaindex/chat-ui": "0.0.14",
"ai": "^4.0.3",
"ajv": "^8.12.0",
- "class-variance-authority": "^0.7.0",
+ "class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dotenv": "^16.3.1",
"duck-duck-scrape": "^2.2.5",
@@ -32,7 +33,7 @@
"react-dom": "^19.0.0",
"papaparse": "^5.4.1",
"supports-color": "^8.1.1",
- "tailwind-merge": "^2.1.0",
+ "tailwind-merge": "^2.6.0",
"tiktoken": "^1.0.15",
"uuid": "^9.0.1",
"marked": "^14.1.2"