Skip to content

Commit

Permalink
Merge pull request #386 from devoxx/issue-384
Browse files Browse the repository at this point in the history
Corrected webSearchRequest validation
  • Loading branch information
stephanj authored Dec 12, 2024
2 parents 079f62a + db1ead6 commit 4e6e068
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public boolean handlePromptSubmission(ChatMessageContext currentChatMessageConte

startPromptExecution();

isPromptRunning = true;

AtomicBoolean response = new AtomicBoolean(true);
chatPromptExecutor.updatePromptWithCommandIfPresent(currentChatMessageContext, promptOutputPanel)
.ifPresentOrElse(
Expand Down Expand Up @@ -76,6 +74,7 @@ public void stopPromptExecution() {

@Override
public void startPromptExecution() {
isPromptRunning = true;
actionButtonsPanel.disableSubmitBtn();
actionButtonsPanel.disableButtons();
actionButtonsPanel.startGlowing();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private ChatMessageContextUtil() {
.userPrompt(userPromptText)
.userMessage(UserMessage.userMessage(userPromptText))
.languageModel(languageModel)
.webSearchRequested(stateService.getIsWebSearchEnabled() && (stateService.isGoogleSearchEnabled() || stateService.isTavilySearchEnabled()))
.webSearchRequested(stateService.getWebSearchActivated() && (stateService.isGoogleSearchEnabled() || stateService.isTavilySearchEnabled()))
.totalFileCount(FileListManager.getInstance().size())
.executionTimeMs(0)
.cost(0)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Thu Dec 12 18:13:55 CET 2024
#Thu Dec 12 19:55:03 CET 2024
version=0.4.5

0 comments on commit 4e6e068

Please sign in to comment.