Switching chat model #157
-
|
I cannot figure out how to change the model used to chat. I'm trying to use gemini I can select the provider ok. But if I select Also, if I do Also, despite having Thanks in advance for you help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Hi @swerling, which version or commit are you currently using? I have implemented a new caching mechanism that fetches all the models from the API endpoint. To deactivate this, please do not set the Let me know if this resolves the issue. |
Beta Was this translation helpful? Give feedback.
-
|
I observed the same behavior and wondered why it hadn't been fixed, as the current version is much higher than 1.8. I would select the provider and the model, open a chat window, ask a question, and the first model in the list was always selected (regardless of whether the list was static or dynamic). I checked the source code and found that when a model is selected, a flag is passed that indicates whether we set the model in the chat window or just in our own buffer. This behavior was unexpected for me; I thought the setting was applied to all modes (this behavior is not described in the README). Basically, the model is currently selected separately for the command and for the chat. I think this behavior should be explicitly documented. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @raindealer. Thank you very much for bringing this up again. Indeed, there is a confusion about the two models selected for This behavior is on purpose, and I will update the documentation and the FAQ accordingly. Answer: In short, to change the |
Beta Was this translation helpful? Give feedback.
Hi @raindealer.
Thank you very much for bringing this up again. Indeed, there is a confusion about the two models selected for
chatandcommand. You are absolutely right that I also have not completely understood it when @swerling brought this up some time ago.This behavior is on purpose, and I will update the documentation and the FAQ accordingly.
Answer: In short, to change the
chatmodel, one has to be inside the chat started withPrtChatNew. Switching the model in any other case will only switch the interactivecommandmodel. After that, the selections will be persistent.