fix: model value change for empty conversations

This commit is contained in:
Carl-Robert Linnupuu 2024-12-17 11:06:28 +00:00
parent 1c2a5496e4
commit 54fa78e7e6
3 changed files with 9 additions and 4 deletions

View file

@ -187,7 +187,7 @@ public final class ConversationService {
return Optional.empty();
}
private static String getModelForSelectedService(ServiceType serviceType) {
public String getModelForSelectedService(ServiceType serviceType) {
var application = ApplicationManager.getApplication();
return switch (serviceType) {
case CODEGPT -> application.getService(CodeGPTServiceSettings.class)

View file

@ -78,6 +78,7 @@ public class ChatToolWindowTabPanel implements Disposable {
this);
userInputPanel = new UserInputPanel(
project,
conversation,
totalTokensPanel,
this::handleSubmit,
this::handleCancel);