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 committed Aug 17, 2024
1 parent 036b1e2 commit 281c99e
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 281c99e

Please sign in to comment.