Skip to content

Commit d5a1ef3

Browse files
committed
Use session_data in browser
1 parent f541b73 commit d5a1ef3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llmstack/processors/providers/promptly/static_web_browser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ def process(self) -> dict:
122122
interactive=self._config.stream_video,
123123
capture_screenshot=True,
124124
tags_to_extract=self._config.tags_to_extract,
125+
session_data=(
126+
self._env["connections"][self._config.connection_id]["configuration"]["_storage_state"]
127+
if self._config.connection_id
128+
else ""
129+
),
125130
) as web_browser:
126131
if self._config.stream_video and web_browser.get_wss_url():
127132
async_to_sync(

0 commit comments

Comments
 (0)