ichbtrv / chatgpt-svelte

A simple UI for the ChatGPT Open AI Api
64 stars 21 forks source link

I found a little bug that you might be interested to fix #4

Open x4080 opened 10 months ago

x4080 commented 10 months ago

Bug : After the bot answer and we click "New Chat" the last answer is stuck in display, to fix it :

const reset = () => {
  store.set({
    messages: [
      { role: 'assistant', content: introduction }
    ],
    chatState: 'idle'
  });
  answer.set('')
}

its @chat-messages.ts

Just minor bug, love your chat starter app BTW