Skip to content

Commit 07417ba

Browse files
Merge pull request #826 from codeflash-ai/local-setup
local setup
2 parents fe82617 + 243f813 commit 07417ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from rich.tree import Tree
2020

2121
from codeflash.api.aiservice import AiServiceClient, AIServiceRefinerRequest, LocalAiServiceClient
22-
from codeflash.api.cfapi import add_code_context_hash, create_staging, mark_optimization_success
22+
from codeflash.api.cfapi import CFAPI_BASE_URL, add_code_context_hash, create_staging, mark_optimization_success
2323
from codeflash.benchmarking.utils import process_benchmark_data
2424
from codeflash.cli_cmds.console import code_print, console, logger, lsp_log, progress_bar
2525
from codeflash.code_utils import env_utils
@@ -1472,7 +1472,7 @@ def process_review(
14721472
elif staging_review:
14731473
response = create_staging(**data)
14741474
if response.status_code == 200:
1475-
staging_url = f"https://app.codeflash.ai/review-optimizations/{self.function_trace_id[:-4] + exp_type if self.experiment_id else self.function_trace_id}"
1475+
staging_url = f"{CFAPI_BASE_URL}/review-optimizations/{self.function_trace_id[:-4] + exp_type if self.experiment_id else self.function_trace_id}"
14761476
console.print(
14771477
Panel(
14781478
f"[bold green]✅ Staging created:[/bold green]\n[link={staging_url}]{staging_url}[/link]",

0 commit comments

Comments
 (0)