felixbade / assistant

Web UI for ChatGPT API. No back-end, mobile-friendly, continuously user-tested
https://assistant.bloat.app
ISC License
125 stars 25 forks source link

Key error msg doesn't update after typing in the sk- #52

Closed smon1127 closed 1 year ago

smon1127 commented 1 year ago

How to reproduce: reloading page without sk-, adding sk and starting to ask questions

felixbade commented 1 year ago

It works for me when I follow these steps. Both on Firefox and on Chrome

felixbade commented 1 year ago

Ah, now I understand!

  1. No API key
  2. Send a message
  3. Get error
  4. Set the correct API key
  5. Send another message
  6. Get a reply
  7. Old error is still there
felixbade commented 1 year ago

I need to rethink how the error messages should work altogether. Now they are ”replies” to messages, since that’s what is happening technically. Maybe not the most user-friendly way to think about it though.

felixbade commented 1 year ago

Could be worth making a custom text+UI for the most common error states (no API key, incorrect API key, no internet connection)

felixbade commented 1 year ago

Fixed in 3889ea6