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

[Bug]: Provider Switch Causes Model Mismatch and "Illegal Model Request" Error #4052

Open
1 task done
berry-13 opened this issue Sep 14, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@berry-13
Copy link
Collaborator

What happened?

when changing the provider while a model is generating a response, the system switches back to the old provider after completion or error, but the model doesn't update. This mismatch causes an "illegal model request" error when trying to send a new message.
the expected behavior is that both the provider and the model should update consistently when a change is made, allowing users to continue sending messages with the newly selected provider and model without errors

  • The bug occurs when changing the provider during an ongoing response generation
  • After the response finishes or an error occurs, the UI shows the old provider (the one used for generation)
  • However, the model doesn't update to match the displayed provider
  • Attempting to send a new message results in an "illegal model request" error
  • This creates a confusing user experience and prevents normal operation after switching providers

Steps to Reproduce

  1. Start generating a response with Provider A
  2. While the response is being generated, switch to Provider B
  3. Wait for the response to complete or for an error to occur
  4. Observe that the UI switches back to Provider A
  5. Attempt to send a new message
  6. Observe the "illegal model request" error

What browsers are you seeing the problem on?

Firefox, Chrome, Microsoft Edge

Relevant log output

No response

Screenshots

image

Code of Conduct

  • I agree to follow this project's Code of Conduct
@berry-13 berry-13 added the bug Something isn't working label Sep 14, 2024
@danny-avila
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants