use user_url if specified by user when running cruise (#1454)

This commit is contained in:
Shuchang Zheng
2024-12-30 19:13:23 -08:00
committed by GitHub
parent d5dacd9918
commit 24352f5394

View File

@@ -95,7 +95,7 @@ async def initialize_observer_cruise(
metadata_response = await app.SECONDARY_LLM_API_HANDLER(prompt=metadata_prompt, observer_thought=observer_thought)
# validate
LOG.info(f"Initialized observer initial response: {metadata_response}")
url: str = metadata_response.get("url", "")
url: str = user_url or metadata_response.get("url", "")
if not url:
raise UrlGenerationFailure()
title: str = metadata_response.get("title", DEFAULT_WORKFLOW_TITLE)