Skip to content

Commit

Permalink
🦙 fix: Update Title Message Role for Ollama if None Provided (danny-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila authored Aug 16, 2024
1 parent 6a2fac9 commit 9c7414a
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 9c7414a

Please sign in to comment.