mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-20 09:24:08 +00:00
fix: model value change for empty conversations
This commit is contained in:
parent
1c2a5496e4
commit
54fa78e7e6
3 changed files with 9 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ public class ChatToolWindowTabPanel implements Disposable {
|
|||
this);
|
||||
userInputPanel = new UserInputPanel(
|
||||
project,
|
||||
conversation,
|
||||
totalTokensPanel,
|
||||
this::handleSubmit,
|
||||
this::handleCancel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue