Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed(models): allow per-site preferences to be configured for ModelsService #4953

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

jamesmcnamara
Copy link
Contributor

@abeatrix found a bug with the model defaults when switching accounts. This scopes selections and defaults per endpoint, so that (mostly for us internally) you won't end up submitting a chat with a model that doesn't exist because you've switched accounts.

I also:

  • Refactored the cache in ModelsService to make it simpler
  • Stored the auth status in ModelsService because we're already calling it on every status update and it simplifies call sites
  • Refactored newAuthStatus

Test plan

Updated unit tests

@abeatrix
Copy link
Contributor

Merging since James is OOO , and @pkukielka reported the same issue for JetBrains side and confirmed this fixed the issue for JB as well. https://sourcegraph.slack.com/archives/C07CVL78MDF/p1721659422200549?thread_ts=1721649252.862329&cid=C07CVL78MDF

@abeatrix abeatrix merged commit 00527d2 into main Jul 22, 2024
19 checks passed
@abeatrix abeatrix deleted the jsm/models-defaults-auth branch July 22, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants