From 66cab6300f3fec58e88bc4203a3c3e60268a3901 Mon Sep 17 00:00:00 2001 From: Narendranath Gogineni Date: Tue, 14 Jan 2025 12:03:10 +0530 Subject: [PATCH] handle developer role for google models --- src/providers/google/chatComplete.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/providers/google/chatComplete.ts b/src/providers/google/chatComplete.ts index 2bb01e15..5acdaaa3 100644 --- a/src/providers/google/chatComplete.ts +++ b/src/providers/google/chatComplete.ts @@ -108,6 +108,8 @@ export const transformOpenAIRoleToGoogleRole = ( return 'model'; case 'tool': return 'function'; + case 'developer': + return 'system'; default: return role; }