diff --git a/Tools/_sunrise/ai_review.py b/Tools/_sunrise/ai_review.py index 3e704b3d86..1b53716f32 100644 --- a/Tools/_sunrise/ai_review.py +++ b/Tools/_sunrise/ai_review.py @@ -26,7 +26,7 @@ def read_file(path: str) -> str: def call_gemini_chat(system_prompt: str, user_prompt: str) -> str: contents = [ types.Content( - role="system", + role="model", parts=[types.Part.from_text(text=system_prompt)], ), types.Content(