Skip to content

Bug: changing model resets the endpoint but not the UI #133

@thiswillbeyourgithub

Description

@thiswillbeyourgithub

Hi! I hope you're well :)!

I had many issues when fiddling out with endpoints to try to make Claude 3.5 Sonnet working (I finally only made it work with openrouter because anthropic's API does not seem to follow openai's api enough) and finally understood that part of the issue is that if I change the model, the endpoint gets reset but the UI is not updated.

To reproduce:

  1. Go to the main settings or to a chat setting or to the quick settings in a chat
  2. Change the model
  3. Notice that the endpoint UI still indicates that the UI is set
  4. Go back to another screen then back in the setting
  5. Notice the endpoint appears unset

I think it might be better to not reset the endpoint because endpoints can have several model we want to use, especially with openrouter.

Additionally, the error message I get when trying to chat with a model is pretty obscure and appears after a long time (probably because timeout) : Cleartext HTTP traffic to localhost not permitted. I think it might be a good idea to catch the error earlier by telling that the endpoint is unset.

And while I'm at it: maybe the friendly name for each endpoint could be displayed instead of the url in the settings and quick settings? But that's the cherry on top!

Have a nice day @AndraxDev !

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions