Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Follow these steps to get the application running locally for development and te
1. Navigate to the `backend/` directory.
2. Create a file named `.env` by copying the `backend/.env.example` file.
3. Open the `.env` file and add your Gemini API key: `GEMINI_API_KEY="YOUR_ACTUAL_API_KEY"`
4. (Optional) To enable web search and receive references as hyperlinks in the results, add your SerpAPI key: `SERPAPI_KEY="YOUR_SERPAPI_KEY"`

**2. Install Dependencies:**

Expand Down
16 changes: 10 additions & 6 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export default function App() {
if (event.generate_query) {
processedEvent = {
title: "Generating Search Queries",
data: event.generate_query.query_list.join(", "),
data: Array.isArray(event.generate_query.query_list)
? event.generate_query.query_list.join(", ")
: "",
};
} else if (event.web_research) {
const sources = event.web_research.sources_gathered || [];
Expand All @@ -52,11 +54,13 @@ export default function App() {
} else if (event.reflection) {
processedEvent = {
title: "Reflection",
data: event.reflection.is_sufficient
? "Search successful, generating final answer."
: `Need more information, searching for ${event.reflection.follow_up_queries.join(
", "
)}`,
data: Array.isArray(event.reflection.follow_up_queries)
? (event.reflection.is_sufficient
? "Search successful, generating final answer."
: `Need more information, searching for ${event.reflection.follow_up_queries.join(", ")}`)
: (event.reflection.is_sufficient
? "Search successful, generating final answer."
: "Need more information, searching for follow up queries."),
};
} else if (event.finalize_answer) {
processedEvent = {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/ChatMessagesView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export function ChatMessagesView({
liveActivityEvents,
historicalActivities,
}: ChatMessagesViewProps) {
console.log("[DEBUG] Messages in ChatMessagesView:", messages); // Debug log
const [copiedMessageId, setCopiedMessageId] = useState<string | null>(null);

const handleCopy = async (text: string, messageId: string) => {
Expand Down