Skip to content

Commit ab1c385

Browse files
committed
add explanation
1 parent eb032bb commit ab1c385

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/api/aiservice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def get_optimization_impact(
543543
coverage_message: str,
544544
replay_tests: str,
545545
root_dir: Path,
546-
concolic_tests: str,
546+
concolic_tests: str, # noqa: ARG002
547547
) -> str:
548548
"""Compute the optimization impact of current Pull Request.
549549
@@ -580,6 +580,7 @@ def get_optimization_impact(
580580
logger.info("!lsp|Computing Optimization Impact…")
581581
payload = {
582582
"code_diff": code_diff,
583+
"explanation": explanation.raw_explanation_message,
583584
"existing_tests": existing_tests_source,
584585
"generated_tests": generated_original_test_source,
585586
"trace_id": function_trace_id,
@@ -591,7 +592,6 @@ def get_optimization_impact(
591592
"optimized_runtime": humanize_runtime(explanation.best_runtime_ns),
592593
"original_runtime": humanize_runtime(explanation.original_runtime_ns),
593594
}
594-
logger.debug(f"unused {type(concolic_tests)}")
595595
console.rule()
596596
try:
597597
response = self.make_ai_service_request("/optimization_impact", payload=payload, timeout=600)

0 commit comments

Comments
 (0)