mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
Fix handling for new conversation in agents page
This commit is contained in:
@@ -203,7 +203,10 @@ export async function createNewConversation(slug: string) {
|
||||
const conversationId = data.conversation_id;
|
||||
if (!uniqueId) throw new Error("Unique ID not found in response");
|
||||
if (!conversationId) throw new Error("Conversation ID not found in response");
|
||||
return { conversationId, conversationUniqueId: uniqueId } as NewConversationMetadata;
|
||||
return {
|
||||
conversationId: conversationId,
|
||||
conversationUniqueId: uniqueId,
|
||||
} as NewConversationMetadata;
|
||||
} catch (error) {
|
||||
console.error("Error creating new conversation:", error);
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user