mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 18:52:12 +03:00
59fe7b089b
* feat(chat): use openai function for answer (backend) * feat(chat): use openai function for answer (frontend) * chore: refacto BrainPicking * feat: update chat creation logic * feat: simplify chat system logic * feat: set default method to gpt-3.5-turbo-0613 * feat: use user own openai key * feat(chat): slightly improve prompts * feat: add global error interceptor * feat: remove unused endpoints * docs: update chat system doc * chore(linter): add unused import remove config * feat: improve dx * feat: improve OpenAiFunctionBasedAnswerGenerator prompt
29 lines
876 B
TypeScript
29 lines
876 B
TypeScript
/* eslint-disable */
|
|
"use client";
|
|
|
|
import PageHeading from "@/lib/components/ui/PageHeading";
|
|
|
|
import { ChatInput, ChatMessages } from "../components";
|
|
import { ChatProvider } from "./context/ChatContext";
|
|
|
|
export default function ChatPage() {
|
|
return (
|
|
<main className="flex flex-col w-full pt-10">
|
|
<section className="flex flex-col flex-1 items-center w-full h-full min-h-screen">
|
|
<PageHeading
|
|
title="Chat with your brain"
|
|
subtitle="Talk to a language model about your uploaded data"
|
|
/>
|
|
<ChatProvider>
|
|
<div className="relative h-full w-full flex flex-col flex-1 items-center">
|
|
<div className="h-full flex-1 w-full flex flex-col items-center">
|
|
<ChatMessages />
|
|
</div>
|
|
<ChatInput />
|
|
</div>
|
|
</ChatProvider>
|
|
</section>
|
|
</main>
|
|
);
|
|
}
|