This commit is contained in:
Petr Mironychev 2024-09-23 00:19:38 +02:00
parent 4b0b589d0e
commit 93c69df1b9
3 changed files with 5 additions and 6 deletions

View File

@ -47,7 +47,6 @@ inline void logMessage(const QString &message, bool silent = true)
return;
const QString prefixedMessage = QLatin1String("[Qode Assist] ") + message;
qDebug() << prefixedMessage;
if (silent) {
Core::MessageManager::writeSilently(prefixedMessage);
} else {

View File

@ -73,8 +73,6 @@ void LLMRequestHandler::handleLLMResponse(QNetworkReply *reply,
const QJsonObject &request,
const LLMConfig &config)
{
qDebug() << "Handling LLM response" << request;
QString &accumulatedResponse = m_accumulatedResponses[reply];
bool isComplete = config.provider->handleResponse(reply, accumulatedResponse);

View File

@ -59,8 +59,8 @@ GeneralSettings::GeneralSettings()
enableLogging.setDefaultValue(false);
multiLineCompletion.setSettingsKey(Constants::MULTILINE_COMPLETION);
multiLineCompletion.setDefaultValue(true);
multiLineCompletion.setLabelText(Tr::tr("Enable Multiline Completion"));
multiLineCompletion.setDefaultValue(false);
multiLineCompletion.setLabelText(Tr::tr("Enable Multiline Completion(experimental)"));
startSuggestionTimer.setSettingsKey(Constants::START_SUGGESTION_TIMER);
startSuggestionTimer.setLabelText(Tr::tr("with delay(ms)"));
@ -167,7 +167,7 @@ GeneralSettings::GeneralSettings()
Row{selectModels, modelName, fimModelIndicator},
Row{fimPrompts, Stretch{1}}}},
Space{16},
Group{title(Tr::tr("AI Chat")),
Group{title(Tr::tr("AI Chat(experimental)")),
Column{Row{chatLlmProviders, Stretch{1}},
Row{chatUrl, chatEndPoint, chatUrlIndicator},
Row{chatSelectModels, chatModelName, chatModelIndicator},
@ -184,10 +184,12 @@ void GeneralSettings::setupConnections()
connect(&llmProviders, &Utils::SelectionAspect::volatileValueChanged, this, [this]() {
auto providerName = llmProviders.displayForIndex(llmProviders.volatileValue());
setCurrentFimProvider(providerName);
modelName.setVolatileValue("");
});
connect(&chatLlmProviders, &Utils::SelectionAspect::volatileValueChanged, this, [this]() {
auto providerName = chatLlmProviders.displayForIndex(chatLlmProviders.volatileValue());
setCurrentChatProvider(providerName);
chatModelName.setVolatileValue("");
});
connect(&fimPrompts, &Utils::SelectionAspect::volatileValueChanged, this, [this]() {