feat: allow to disable auth during development (#21)

This commit is contained in:
Dominic Elm
2024-07-30 10:31:35 +02:00
committed by GitHub
parent 4df1da4908
commit 58af0dea8c
6 changed files with 11 additions and 20 deletions

View File

@@ -47,7 +47,7 @@ export function ChatImpl({ initialMessages, storeMessageHistory }: ChatProps) {
const { messages, isLoading, input, handleInputChange, setInput, handleSubmit, stop, append } = useChat({
api: '/api/chat',
onError: (error) => {
logger.error(error);
logger.error('Request failed\n\n', error);
toast.error('There was an error processing your request');
},
onFinish: () => {