bug: openAI key modal is not dismissible even after pasting the token
altryne opened this issue ยท 13 comments
happens in chrome and in Arc btw, with or without adblockers. Not sure what else to test, no JS errors in console
thanks for opening an issue!
issue here was that entering your api key triggers a mixpanel event, and w/o a mixpanel token that will error.
fixed here: 4786c49
I still can't run this, cache refresh, both local (pulled latest changes) and on http://flux.paradigm.xyz
Pasted the key, modal.. stays right there.
Tried on Safari, Chrome and Arc ๐ซข
FLUX_OPENAI_API_KEY is stored. I don't think I have a key issue, it's been in my 1P since a year ago.
oh huh wtfโ do you see any errors the console?
and are you sure you don't have an extra space or something after the token?
yup this line determines if a key is "valid" or not (which triggers the dismissal)
the only other thing that could block the dismissal is the typing handler throwing for some reason
could in theory be this line but you'd see an error in the console
oh weird, yeah that must be it! didn't know they changed the format... TIL
we could add support for 43 char tho im worried that might introduce some confusion
Keep it, worst case this issue is here for ref.
Tested with a new token and works ๐ฅ
awesome thanks for making debugging this so easy :)