mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 02:49:12 -04:00
chore: Update default ollama models
This commit is contained in:
@@ -336,8 +336,12 @@ void QodeAssistClient::requestQuickRefactor(
|
|||||||
|
|
||||||
void QodeAssistClient::scheduleRequest(TextEditor::TextEditorWidget *editor)
|
void QodeAssistClient::scheduleRequest(TextEditor::TextEditorWidget *editor)
|
||||||
{
|
{
|
||||||
if (m_runningRequests.contains(editor))
|
if (m_runningRequests.contains(editor)) {
|
||||||
|
if (Settings::codeCompletionSettings().cancelOnInput())
|
||||||
|
cancelRunningRequest(editor);
|
||||||
|
else
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto it = m_scheduledRequests.find(editor);
|
auto it = m_scheduledRequests.find(editor);
|
||||||
if (it == m_scheduledRequests.end()) {
|
if (it == m_scheduledRequests.end()) {
|
||||||
|
|||||||
@@ -87,6 +87,17 @@ CodeCompletionSettings::CodeCompletionSettings()
|
|||||||
"is already visible will not force it closed. The LLM suggestion still appears "
|
"is already visible will not force it closed. The LLM suggestion still appears "
|
||||||
"inline."));
|
"inline."));
|
||||||
|
|
||||||
|
cancelOnInput.setSettingsKey(Constants::CC_CANCEL_ON_INPUT);
|
||||||
|
cancelOnInput.setLabelText(Tr::tr("Cancel in-flight request on new input"));
|
||||||
|
cancelOnInput.setDefaultValue(false);
|
||||||
|
cancelOnInput.setToolTip(
|
||||||
|
Tr::tr("When enabled, every new keystroke cancels any completion request already in "
|
||||||
|
"flight and restarts the debounce timer. Useful for slow local models where an "
|
||||||
|
"outdated answer is rarely worth waiting for.\n"
|
||||||
|
"When disabled (default), the in-flight request is kept; when the answer arrives, "
|
||||||
|
"the plugin compares it with characters typed in the meantime and either trims "
|
||||||
|
"the matching prefix or drops the answer."));
|
||||||
|
|
||||||
startSuggestionTimer.setSettingsKey(Constants::СС_START_SUGGESTION_TIMER);
|
startSuggestionTimer.setSettingsKey(Constants::СС_START_SUGGESTION_TIMER);
|
||||||
startSuggestionTimer.setLabelText(Tr::tr("with delay(ms)"));
|
startSuggestionTimer.setLabelText(Tr::tr("with delay(ms)"));
|
||||||
startSuggestionTimer.setToolTip(
|
startSuggestionTimer.setToolTip(
|
||||||
@@ -388,6 +399,7 @@ CodeCompletionSettings::CodeCompletionSettings()
|
|||||||
showProgressWidget,
|
showProgressWidget,
|
||||||
useOpenFilesContext,
|
useOpenFilesContext,
|
||||||
respectQtcPopup,
|
respectQtcPopup,
|
||||||
|
cancelOnInput,
|
||||||
abortAssistOnRequest,
|
abortAssistOnRequest,
|
||||||
ignoreWhitespaceInCharCount};
|
ignoreWhitespaceInCharCount};
|
||||||
|
|
||||||
@@ -489,6 +501,7 @@ void CodeCompletionSettings::resetSettingsToDefaults()
|
|||||||
resetAspect(completionMode);
|
resetAspect(completionMode);
|
||||||
resetAspect(smartContextTrigger);
|
resetAspect(smartContextTrigger);
|
||||||
resetAspect(respectQtcPopup);
|
resetAspect(respectQtcPopup);
|
||||||
|
resetAspect(cancelOnInput);
|
||||||
resetAspect(hintCharThreshold);
|
resetAspect(hintCharThreshold);
|
||||||
resetAspect(hintHideTimeout);
|
resetAspect(hintHideTimeout);
|
||||||
resetAspect(hintTriggerKey);
|
resetAspect(hintTriggerKey);
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ public:
|
|||||||
Utils::SelectionAspect completionMode{this};
|
Utils::SelectionAspect completionMode{this};
|
||||||
Utils::BoolAspect smartContextTrigger{this};
|
Utils::BoolAspect smartContextTrigger{this};
|
||||||
Utils::BoolAspect respectQtcPopup{this};
|
Utils::BoolAspect respectQtcPopup{this};
|
||||||
|
Utils::BoolAspect cancelOnInput{this};
|
||||||
|
|
||||||
Utils::IntegerAspect startSuggestionTimer{this};
|
Utils::IntegerAspect startSuggestionTimer{this};
|
||||||
Utils::IntegerAspect autoCompletionCharThreshold{this};
|
Utils::IntegerAspect autoCompletionCharThreshold{this};
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ GeneralSettings::GeneralSettings()
|
|||||||
caProvider.setReadOnly(true);
|
caProvider.setReadOnly(true);
|
||||||
caSelectProvider.m_buttonText = TrConstants::SELECT;
|
caSelectProvider.m_buttonText = TrConstants::SELECT;
|
||||||
|
|
||||||
initStringAspect(caModel, Constants::CA_MODEL, TrConstants::MODEL, "qwen2.5-coder:7b");
|
initStringAspect(caModel, Constants::CA_MODEL, TrConstants::MODEL, "qwen3.5:9b");
|
||||||
caModel.setHistoryCompleter(Constants::CA_MODEL_HISTORY);
|
caModel.setHistoryCompleter(Constants::CA_MODEL_HISTORY);
|
||||||
caSelectModel.m_buttonText = TrConstants::SELECT;
|
caSelectModel.m_buttonText = TrConstants::SELECT;
|
||||||
|
|
||||||
@@ -215,7 +215,7 @@ GeneralSettings::GeneralSettings()
|
|||||||
qrProvider.setReadOnly(true);
|
qrProvider.setReadOnly(true);
|
||||||
qrSelectProvider.m_buttonText = TrConstants::SELECT;
|
qrSelectProvider.m_buttonText = TrConstants::SELECT;
|
||||||
|
|
||||||
initStringAspect(qrModel, Constants::QR_MODEL, TrConstants::MODEL, "qwen2.5-coder:7b");
|
initStringAspect(qrModel, Constants::QR_MODEL, TrConstants::MODEL, "qwen3.5:9b");
|
||||||
qrModel.setHistoryCompleter(Constants::QR_MODEL_HISTORY);
|
qrModel.setHistoryCompleter(Constants::QR_MODEL_HISTORY);
|
||||||
qrSelectModel.m_buttonText = TrConstants::SELECT;
|
qrSelectModel.m_buttonText = TrConstants::SELECT;
|
||||||
|
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ const char CC_COMPLETION_TRIGGER_MODE[] = "QodeAssist.ccCompletionTriggerMode";
|
|||||||
const char CC_COMPLETION_MODE[] = "QodeAssist.ccCompletionMode";
|
const char CC_COMPLETION_MODE[] = "QodeAssist.ccCompletionMode";
|
||||||
const char CC_SMART_CONTEXT_TRIGGER[] = "QodeAssist.ccSmartContextTrigger";
|
const char CC_SMART_CONTEXT_TRIGGER[] = "QodeAssist.ccSmartContextTrigger";
|
||||||
const char CC_RESPECT_QTC_POPUP[] = "QodeAssist.ccRespectQtcPopup";
|
const char CC_RESPECT_QTC_POPUP[] = "QodeAssist.ccRespectQtcPopup";
|
||||||
|
const char CC_CANCEL_ON_INPUT[] = "QodeAssist.ccCancelOnInput";
|
||||||
const char CC_HINT_CHAR_THRESHOLD[] = "QodeAssist.ccHintCharThreshold";
|
const char CC_HINT_CHAR_THRESHOLD[] = "QodeAssist.ccHintCharThreshold";
|
||||||
const char CC_HINT_HIDE_TIMEOUT[] = "QodeAssist.ccHintHideTimeout";
|
const char CC_HINT_HIDE_TIMEOUT[] = "QodeAssist.ccHintHideTimeout";
|
||||||
const char CC_HINT_TRIGGER_KEY[] = "QodeAssist.ccHintTriggerKey";
|
const char CC_HINT_TRIGGER_KEY[] = "QodeAssist.ccHintTriggerKey";
|
||||||
|
|||||||
Reference in New Issue
Block a user