Skip to content

Commit

Permalink
🦙 fix: Update Title Message Role for Ollama if None Provided (#3663)
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila authored Aug 16, 2024
1 parent 96581d5 commit f8a5dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/clients/OpenAIClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit f8a5dad

Please sign in to comment.