From 281c99efe14f0cabf1cd2ed552c38e4c7100cf28 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Fri, 16 Aug 2024 04:54:37 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=99=20fix:=20Update=20Title=20Message?= =?UTF-8?q?=20Role=20for=20Ollama=20if=20None=20Provided=20(#3663)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/clients/OpenAIClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/clients/OpenAIClient.js b/api/app/clients/OpenAIClient.js index ccc5165fc712..ddb8b7c42d10 100644 --- a/api/app/clients/OpenAIClient.js +++ b/api/app/clients/OpenAIClient.js @@ -827,7 +827,7 @@ class OpenAIClient extends BaseClient { const instructionsPayload = [ { - role: this.options.titleMessageRole ?? 'system', + role: this.options.titleMessageRole ?? (this.isOllama ? 'user' : 'system'), content: `Please generate ${titleInstruction} ${convo}