mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Update pr_agent/algo/ai_handlers/litellm_ai_handler.py
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
This commit is contained in:
parent
727b08fde3
commit
e6c56c7355
1 changed files with 2 additions and 1 deletions
|
|
@ -187,7 +187,8 @@ class LiteLLMAIHandler(BaseAiHandler):
|
||||||
{"type": "image_url", "image_url": {"url": img_path}}]
|
{"type": "image_url", "image_url": {"url": img_path}}]
|
||||||
|
|
||||||
# Currently O1 does not support separate system and user prompts
|
# Currently O1 does not support separate system and user prompts
|
||||||
if model.startswith('o1-'):
|
O1_MODEL_PREFIX = 'o1-'
|
||||||
|
if model.startswith(O1_MODEL_PREFIX):
|
||||||
user = f"{system}\n\n\n{user}"
|
user = f"{system}\n\n\n{user}"
|
||||||
system = ""
|
system = ""
|
||||||
get_logger().info(f"Using O1 model, combining system and user prompts")
|
get_logger().info(f"Using O1 model, combining system and user prompts")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue