🦙 fix: Update Title Message Role for Ollama if None Provided (#3663)

This commit is contained in:
Danny Avila 2024-08-16 04:54:37 -04:00 committed by GitHub
parent 96581d56df
commit f8a5dad265
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}