Skip to content

Commit 5fae405

Browse files
authored
Merge pull request #811 from codeflash-ai/aseembits93-patch-1
Undo Optimization Impact
2 parents 4b1a2f3 + 6d7be3b commit 5fae405

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,14 +1461,14 @@ 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+
# 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}")
14721472
if raise_pr and not staging_review:
14731473
data["git_remote"] = self.args.git_remote
14741474
check_create_pr(**data)

0 commit comments

Comments
 (0)