Skip to content

Commit 7c8e0f9

Browse files
authored
Merge branch 'main' into opt-impact-aseem-improvement
2 parents 33bcab6 + 03361cc commit 7c8e0f9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,14 +1461,12 @@ def process_review(
14611461

14621462
if raise_pr or staging_review:
14631463
data["root_dir"] = git_root_dir()
1464-
# try:
1465-
# # modify argument of staging vs pr based on the impact
1466-
# opt_impact_response = self.aiservice_client.get_optimization_impact(**data)
1467-
# if opt_impact_response == "low":
1468-
# raise_pr = False
1469-
# staging_review = True
1470-
# except Exception as e:
1471-
# logger.debug(f"optimization impact response failed, investigate {e}")
1464+
opt_impact_response = ""
1465+
try:
1466+
opt_impact_response = self.aiservice_client.get_optimization_impact(**data)
1467+
except Exception as e:
1468+
logger.debug(f"optimization impact response failed, investigate {e}")
1469+
data["optimization_impact"] = opt_impact_response
14721470
if raise_pr and not staging_review:
14731471
data["git_remote"] = self.args.git_remote
14741472
check_create_pr(**data)

0 commit comments

Comments
 (0)