Skip to content

Commit d7fb0f4

Browse files
committed
Handle json output from web_browser
1 parent 979f9bc commit d7fb0f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llmstack/processors/providers/promptly/web_browser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ def process(self) -> dict:
396396
'output': content,
397397
}
398398

399+
# If output is json, convert that to string
400+
if 'output' in result and type(result['output']) != str:
401+
result['output'] = str(result['output'])
402+
399403
if 'instructions' in result:
400404
steps = []
401405
for instruction in result['instructions']:

0 commit comments

Comments
 (0)