Skip to content

Commit

Permalink
fix: fix request prompt issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Aug 6, 2023
1 parent 3a2a216 commit 08036ac
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -25,11 +25,12 @@ class ChatCodingService(var actionType: ChatActionType, val project: Project) {
prompt: ContextPrompter,
context: ChatContext? = null
) {
ui.addMessage(prompt.requestPrompt(), true, prompt.displayPrompt())
val requestPrompt = prompt.requestPrompt()
ui.addMessage(requestPrompt, true, prompt.displayPrompt())
ui.addMessage(AutoDevBundle.message("devti.loading"))

ApplicationManager.getApplication().executeOnPooledThread {
val response = this.makeChatBotRequest(prompt.requestPrompt())
val response = this.makeChatBotRequest(requestPrompt)
LLMCoroutineScopeService.scope(project).launch {
when {
actionType === ChatActionType.REFACTOR -> ui.updateReplaceableContent(response) {
Expand Down

0 comments on commit 08036ac

Please sign in to comment.