mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🦙 fix: Update Title Message Role for Ollama if None Provided (#3663)
This commit is contained in:
parent
96581d56df
commit
f8a5dad265
1 changed files with 1 additions and 1 deletions
|
|
@ -827,7 +827,7 @@ class OpenAIClient extends BaseClient {
|
||||||
|
|
||||||
const instructionsPayload = [
|
const instructionsPayload = [
|
||||||
{
|
{
|
||||||
role: this.options.titleMessageRole ?? 'system',
|
role: this.options.titleMessageRole ?? (this.isOllama ? 'user' : 'system'),
|
||||||
content: `Please generate ${titleInstruction}
|
content: `Please generate ${titleInstruction}
|
||||||
|
|
||||||
${convo}
|
${convo}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue