mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-06-03 00:58:34 -04:00
Fix typo
This commit is contained in:
parent
4b0b589d0e
commit
93c69df1b9
@ -47,7 +47,6 @@ inline void logMessage(const QString &message, bool silent = true)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
const QString prefixedMessage = QLatin1String("[Qode Assist] ") + message;
|
const QString prefixedMessage = QLatin1String("[Qode Assist] ") + message;
|
||||||
qDebug() << prefixedMessage;
|
|
||||||
if (silent) {
|
if (silent) {
|
||||||
Core::MessageManager::writeSilently(prefixedMessage);
|
Core::MessageManager::writeSilently(prefixedMessage);
|
||||||
} else {
|
} else {
|
||||||
|
@ -73,8 +73,6 @@ void LLMRequestHandler::handleLLMResponse(QNetworkReply *reply,
|
|||||||
const QJsonObject &request,
|
const QJsonObject &request,
|
||||||
const LLMConfig &config)
|
const LLMConfig &config)
|
||||||
{
|
{
|
||||||
qDebug() << "Handling LLM response" << request;
|
|
||||||
|
|
||||||
QString &accumulatedResponse = m_accumulatedResponses[reply];
|
QString &accumulatedResponse = m_accumulatedResponses[reply];
|
||||||
|
|
||||||
bool isComplete = config.provider->handleResponse(reply, accumulatedResponse);
|
bool isComplete = config.provider->handleResponse(reply, accumulatedResponse);
|
||||||
|
@ -59,8 +59,8 @@ GeneralSettings::GeneralSettings()
|
|||||||
enableLogging.setDefaultValue(false);
|
enableLogging.setDefaultValue(false);
|
||||||
|
|
||||||
multiLineCompletion.setSettingsKey(Constants::MULTILINE_COMPLETION);
|
multiLineCompletion.setSettingsKey(Constants::MULTILINE_COMPLETION);
|
||||||
multiLineCompletion.setDefaultValue(true);
|
multiLineCompletion.setDefaultValue(false);
|
||||||
multiLineCompletion.setLabelText(Tr::tr("Enable Multiline Completion"));
|
multiLineCompletion.setLabelText(Tr::tr("Enable Multiline Completion(experimental)"));
|
||||||
|
|
||||||
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)"));
|
||||||
@ -167,7 +167,7 @@ GeneralSettings::GeneralSettings()
|
|||||||
Row{selectModels, modelName, fimModelIndicator},
|
Row{selectModels, modelName, fimModelIndicator},
|
||||||
Row{fimPrompts, Stretch{1}}}},
|
Row{fimPrompts, Stretch{1}}}},
|
||||||
Space{16},
|
Space{16},
|
||||||
Group{title(Tr::tr("AI Chat")),
|
Group{title(Tr::tr("AI Chat(experimental)")),
|
||||||
Column{Row{chatLlmProviders, Stretch{1}},
|
Column{Row{chatLlmProviders, Stretch{1}},
|
||||||
Row{chatUrl, chatEndPoint, chatUrlIndicator},
|
Row{chatUrl, chatEndPoint, chatUrlIndicator},
|
||||||
Row{chatSelectModels, chatModelName, chatModelIndicator},
|
Row{chatSelectModels, chatModelName, chatModelIndicator},
|
||||||
@ -184,10 +184,12 @@ void GeneralSettings::setupConnections()
|
|||||||
connect(&llmProviders, &Utils::SelectionAspect::volatileValueChanged, this, [this]() {
|
connect(&llmProviders, &Utils::SelectionAspect::volatileValueChanged, this, [this]() {
|
||||||
auto providerName = llmProviders.displayForIndex(llmProviders.volatileValue());
|
auto providerName = llmProviders.displayForIndex(llmProviders.volatileValue());
|
||||||
setCurrentFimProvider(providerName);
|
setCurrentFimProvider(providerName);
|
||||||
|
modelName.setVolatileValue("");
|
||||||
});
|
});
|
||||||
connect(&chatLlmProviders, &Utils::SelectionAspect::volatileValueChanged, this, [this]() {
|
connect(&chatLlmProviders, &Utils::SelectionAspect::volatileValueChanged, this, [this]() {
|
||||||
auto providerName = chatLlmProviders.displayForIndex(chatLlmProviders.volatileValue());
|
auto providerName = chatLlmProviders.displayForIndex(chatLlmProviders.volatileValue());
|
||||||
setCurrentChatProvider(providerName);
|
setCurrentChatProvider(providerName);
|
||||||
|
chatModelName.setVolatileValue("");
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(&fimPrompts, &Utils::SelectionAspect::volatileValueChanged, this, [this]() {
|
connect(&fimPrompts, &Utils::SelectionAspect::volatileValueChanged, this, [this]() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user