-
Notifications
You must be signed in to change notification settings - Fork 10
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
Set default LLM to the last one used #1263
Conversation
@@ -53,10 +50,6 @@ class FixupService(val project: Project) : Disposable { | |||
return true | |||
} | |||
|
|||
fun setCurrentModel(model: ChatModelsResponse.ChatModelProvider) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Value never used.
af11c2f
to
97a298c
Compare
@@ -48,7 +48,7 @@ class EditCommandPrompt(val controller: FixupService, val editor: Editor, val di | |||
LlmDropdown( | |||
modelUsage = ModelUsage.EDIT, | |||
project = controller.project, | |||
onSetSelectedItem = controller::setCurrentModel, | |||
onSetSelectedItem = {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this callback should persist the default for the inline edits, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, @danielmarquespt said the default between edits and chats should be the same.
We are already saving the default in LlmDropdown::setSelectedItem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
97a298c
to
b309f9f
Compare
Changes
User LLM selection is now saved and used for subsequest chats/edits.
TODO: new API for commands is needed to suport the same.
Test plan
Manual tests according to QA guide