mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Update O1_MODEL_PREFIX to o1 based on new models released
This commit is contained in:
parent
8d7825233a
commit
23678c1d4d
1 changed files with 2 additions and 2 deletions
|
|
@ -193,8 +193,8 @@ class LiteLLMAIHandler(BaseAiHandler):
|
||||||
messages[1]["content"] = [{"type": "text", "text": messages[1]["content"]},
|
messages[1]["content"] = [{"type": "text", "text": messages[1]["content"]},
|
||||||
{"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, model OpenAI o1 series does not support a separate system and user prompts
|
||||||
O1_MODEL_PREFIX = 'o1-'
|
O1_MODEL_PREFIX = 'o1'
|
||||||
model_type = model.split('/')[-1] if '/' in model else model
|
model_type = model.split('/')[-1] if '/' in model else model
|
||||||
if model_type.startswith(O1_MODEL_PREFIX):
|
if model_type.startswith(O1_MODEL_PREFIX):
|
||||||
user = f"{system}\n\n\n{user}"
|
user = f"{system}\n\n\n{user}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue