mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-13 07:02:34 +00:00
refactor: improve chat response rendering performance
This commit is contained in:
parent
d5d03a53b1
commit
079ad80e60
8 changed files with 132 additions and 111 deletions
|
|
@ -235,8 +235,7 @@ public class ChatToolWindowTabPanel implements Disposable {
|
|||
true,
|
||||
false,
|
||||
message.isWebSearchIncluded(),
|
||||
message.getDocumentationDetails() != null,
|
||||
fileContextIncluded,
|
||||
fileContextIncluded || message.getDocumentationDetails() != null,
|
||||
this));
|
||||
}
|
||||
|
||||
|
|
@ -285,7 +284,7 @@ public class ChatToolWindowTabPanel implements Disposable {
|
|||
private void call(ChatCompletionParameters callParameters, ResponsePanel responsePanel) {
|
||||
var responseContainer = (ChatMessageResponseBody) responsePanel.getContent();
|
||||
|
||||
if (!CompletionRequestService.getInstance().isAllowed()) {
|
||||
if (!CompletionRequestService.isRequestAllowed()) {
|
||||
responseContainer.displayMissingCredential();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue