feat: Add stream option to settings

This commit is contained in:
Petr Mironychev
2024-12-10 21:46:39 +01:00
parent c070fd5cfd
commit 16b77a5722
8 changed files with 73 additions and 49 deletions

View File

@ -106,7 +106,7 @@ void ClientInterface::sendMessage(const QString &message, bool includeCurrentFil
QJsonObject providerRequest;
providerRequest["model"] = Settings::generalSettings().caModel();
providerRequest["stream"] = true;
providerRequest["stream"] = chatAssistantSettings.stream();
providerRequest["messages"] = m_chatModel->prepareMessagesForRequest(systemPrompt);
if (promptTemplate)