mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 03:15:17 +00:00
fix: logic
This commit is contained in:
parent
af2b66bb51
commit
a8b8202567
1 changed files with 4 additions and 3 deletions
|
|
@ -353,9 +353,10 @@ class LiteLLMAIHandler(BaseAiHandler):
|
|||
kwargs = _process_litellm_extra_body(kwargs)
|
||||
|
||||
# Support for Bedrock custom inference profile via model_id
|
||||
if get_settings().get("LITELLM.MODEL_ID", None) and 'bedrock/' in model:
|
||||
kwargs["model_id"] = get_settings().litellm.model_id
|
||||
get_logger().info(f"Using Bedrock custom inference profile: {get_settings().litellm.model_id}")
|
||||
model_id = get_settings().get("litellm.model_id")
|
||||
if model_id and 'bedrock/' in model:
|
||||
kwargs["model_id"] = model_id
|
||||
get_logger().info(f"Using Bedrock custom inference profile: {model_id}")
|
||||
|
||||
get_logger().debug("Prompts", artifact={"system": system, "user": user})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue