fix the ai click context missing problem (#4029)
This commit is contained in:
@@ -158,7 +158,7 @@ class RealSkyvernPageAi(SkyvernPageAi):
|
|||||||
current_url=self.page.url,
|
current_url=self.page.url,
|
||||||
elements=element_tree,
|
elements=element_tree,
|
||||||
local_datetime=datetime.now(context.tz_info or datetime.now().astimezone().tzinfo).isoformat(),
|
local_datetime=datetime.now(context.tz_info or datetime.now().astimezone().tzinfo).isoformat(),
|
||||||
# user_context=getattr(context, "prompt", None),
|
user_context=context.prompt,
|
||||||
)
|
)
|
||||||
json_response = await app.SINGLE_CLICK_AGENT_LLM_API_HANDLER(
|
json_response = await app.SINGLE_CLICK_AGENT_LLM_API_HANDLER(
|
||||||
prompt=single_click_prompt,
|
prompt=single_click_prompt,
|
||||||
|
|||||||
Reference in New Issue
Block a user