Skip to content

Commit

Permalink
Merge pull request #865 from narengogi/fix/gemini-developer-role-fix
Browse files Browse the repository at this point in the history
fix: handle developer role for google models
  • Loading branch information
VisargD authored Jan 14, 2025
2 parents c33ef01 + 66cab63 commit 4fe6af0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/google/chatComplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ export const transformOpenAIRoleToGoogleRole = (
return 'model';
case 'tool':
return 'function';
case 'developer':
return 'system';
default:
return role;
}
Expand Down

0 comments on commit 4fe6af0

Please sign in to comment.