Skip to content

Commit

Permalink
Update pr_agent/algo/ai_handlers/litellm_ai_handler.py
Browse files Browse the repository at this point in the history
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
  • Loading branch information
mrT23 and qodo-merge-pro[bot] authored Oct 19, 2024
1 parent b743714 commit dcb7b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr_agent/algo/ai_handlers/litellm_ai_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def chat_completion(self, model: str, system: str, user: str, temperature:

# Currently O1 does not support separate system and user prompts
O1_MODEL_PREFIX = 'o1-'
model_type = model.split('/')[-1] # 'azure/o1-' or '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}"
system = ""
Expand Down

0 comments on commit dcb7b66

Please sign in to comment.