From 23678c1d4d091acd354b78e59029f6fc2fcbedf9 Mon Sep 17 00:00:00 2001 From: Trung Dinh Date: Sun, 22 Dec 2024 10:36:59 +0700 Subject: [PATCH] Update O1_MODEL_PREFIX to o1 based on new models released --- pr_agent/algo/ai_handlers/litellm_ai_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pr_agent/algo/ai_handlers/litellm_ai_handler.py b/pr_agent/algo/ai_handlers/litellm_ai_handler.py index c53c1ec3..c8a752f8 100644 --- a/pr_agent/algo/ai_handlers/litellm_ai_handler.py +++ b/pr_agent/algo/ai_handlers/litellm_ai_handler.py @@ -193,8 +193,8 @@ class LiteLLMAIHandler(BaseAiHandler): messages[1]["content"] = [{"type": "text", "text": messages[1]["content"]}, {"type": "image_url", "image_url": {"url": img_path}}] - # Currently O1 does not support separate system and user prompts - O1_MODEL_PREFIX = 'o1-' + # Currently, model OpenAI o1 series does not support a separate system and user prompts + O1_MODEL_PREFIX = 'o1' model_type = model.split('/')[-1] if '/' in model else model if model_type.startswith(O1_MODEL_PREFIX): user = f"{system}\n\n\n{user}"