diff --git a/.backend_env.example b/.backend_env.example index 4a84efa51..fa4e791ba 100644 --- a/.backend_env.example +++ b/.backend_env.example @@ -19,3 +19,5 @@ MODEL_PATH=./local_models/ggml-gpt4all-j-v1.3-groovy.bin #RESEND RESEND_API_KEY= RESEND_EMAIL_ADDRESS=onboarding@resend.dev + +CRAWL_DEPTH=1 \ No newline at end of file diff --git a/backend/core/models/chats.py b/backend/core/models/chats.py index ecc643b9b..57304d7bc 100644 --- a/backend/core/models/chats.py +++ b/backend/core/models/chats.py @@ -17,8 +17,8 @@ class ChatMessage(BaseModel): class ChatQuestion(BaseModel): - model: str = "gpt-3.5-turbo" question: str - temperature: float = 0.0 - max_tokens: int = 256 + model: Optional[str] + temperature: Optional[float] + max_tokens: Optional[int] brain_id: Optional[UUID] diff --git a/frontend/app/chat/[chatId]/hooks/useChat.ts b/frontend/app/chat/[chatId]/hooks/useChat.ts index 7bb366625..86f7cbbf3 100644 --- a/frontend/app/chat/[chatId]/hooks/useChat.ts +++ b/frontend/app/chat/[chatId]/hooks/useChat.ts @@ -29,7 +29,7 @@ export const useChat = () => { const { createChat } = useChatApi(); const { addStreamQuestion } = useQuestion(); - const { t } = useTranslation(['chat']); + const { t } = useTranslation(["chat"]); const addQuestion = async (question: string, callback?: () => void) => { try { @@ -43,6 +43,7 @@ export const useChat = () => { const chat = await createChat(chatName); currentChatId = chat.chat_id; setChatId(currentChatId); + //TODO: update chat list here } void track('QUESTION_ASKED');