Skip to content

Commit

Permalink
Catch missing content
Browse files Browse the repository at this point in the history
ajhai committed Nov 9, 2024

Unverified

This user has not yet uploaded their public signing key.
1 parent bb5227e commit f18acb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llmstack/processors/providers/promptly/web_browser.py
Original file line number Diff line number Diff line change
@@ -665,7 +665,9 @@ def _process_anthropic(self) -> dict:
if browser_response.downloads:
browser_downloads.extend(browser_response.downloads)
async_to_sync(self._output_stream.write)(
WebBrowserOutput(text=choice.message.content[0].get("text", "")),
WebBrowserOutput(text=choice.message.content[0].get("text", ""))
if choice.message.content
else WebBrowserOutput(text="")
)
break
if self._config.record_session_video:

0 comments on commit f18acb1

Please sign in to comment.