Skip to content

Commit

Permalink
fix: [InlineChat] Modify the prompts
Browse files Browse the repository at this point in the history
Do not use chunk as prompts

Log: fix issue
  • Loading branch information
Kakueeen authored and deepin-mozart committed Oct 15, 2024
1 parent 5327588 commit 82cdb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/codegeex/widgets/inlinechatwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ bool InlineChatWidgetPrivate::askForCodeGeeX()
answerLabel->clear();

auto *futureWatcher = new QFutureWatcher<QString>();
futureWatcher->setFuture(QtConcurrent::run(this, &InlineChatWidgetPrivate::createPrompt, question, true));
futureWatcher->setFuture(QtConcurrent::run(this, &InlineChatWidgetPrivate::createPrompt, question, false));
connect(futureWatcher, &QFutureWatcher<QString>::finished, this, &InlineChatWidgetPrivate::handleCreatePromptFinished);
futureWatcherList << futureWatcher;
return true;
Expand Down

0 comments on commit 82cdb1d

Please sign in to comment.