mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-14 17:03:29 +03:00
Crawl/update env variables (#931)
* 📝 add env variable for crawl * 🐛 make CharQuestion with optional attributes * 💡 make chatQustion config optional
This commit is contained in:
parent
9eb25a4d17
commit
74da7dde2d
@ -19,3 +19,5 @@ MODEL_PATH=./local_models/ggml-gpt4all-j-v1.3-groovy.bin
|
|||||||
#RESEND
|
#RESEND
|
||||||
RESEND_API_KEY=<change-me>
|
RESEND_API_KEY=<change-me>
|
||||||
RESEND_EMAIL_ADDRESS=onboarding@resend.dev
|
RESEND_EMAIL_ADDRESS=onboarding@resend.dev
|
||||||
|
|
||||||
|
CRAWL_DEPTH=1
|
@ -17,8 +17,8 @@ class ChatMessage(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class ChatQuestion(BaseModel):
|
class ChatQuestion(BaseModel):
|
||||||
model: str = "gpt-3.5-turbo"
|
|
||||||
question: str
|
question: str
|
||||||
temperature: float = 0.0
|
model: Optional[str]
|
||||||
max_tokens: int = 256
|
temperature: Optional[float]
|
||||||
|
max_tokens: Optional[int]
|
||||||
brain_id: Optional[UUID]
|
brain_id: Optional[UUID]
|
||||||
|
@ -29,7 +29,7 @@ export const useChat = () => {
|
|||||||
const { createChat } = useChatApi();
|
const { createChat } = useChatApi();
|
||||||
|
|
||||||
const { addStreamQuestion } = useQuestion();
|
const { addStreamQuestion } = useQuestion();
|
||||||
const { t } = useTranslation(['chat']);
|
const { t } = useTranslation(["chat"]);
|
||||||
|
|
||||||
const addQuestion = async (question: string, callback?: () => void) => {
|
const addQuestion = async (question: string, callback?: () => void) => {
|
||||||
try {
|
try {
|
||||||
@ -43,6 +43,7 @@ export const useChat = () => {
|
|||||||
const chat = await createChat(chatName);
|
const chat = await createChat(chatName);
|
||||||
currentChatId = chat.chat_id;
|
currentChatId = chat.chat_id;
|
||||||
setChatId(currentChatId);
|
setChatId(currentChatId);
|
||||||
|
//TODO: update chat list here
|
||||||
}
|
}
|
||||||
|
|
||||||
void track('QUESTION_ASKED');
|
void track('QUESTION_ASKED');
|
||||||
|
Loading…
Reference in New Issue
Block a user