Skip to content

Commit 7c9b1d0

Browse files
committed
Return webbrowser content on unsupported instruction
1 parent b5e62df commit 7c9b1d0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

llmstack/processors/providers/promptly/web_browser.py

+8-10
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
WebBrowserCommandOutput,
1515
WebBrowserCommandType,
1616
WebBrowserContent,
17-
WebBrowserResponse,
1817
)
1918
from pydantic import BaseModel, Field
2019

@@ -470,15 +469,14 @@ def _execute_anthropic_instruction_in_browser(
470469
]
471470
)
472471
else:
473-
return WebBrowserResponse(
474-
content=WebBrowserContent(
475-
command_outputs=[
476-
WebBrowserCommandOutput(
477-
index=0,
478-
output="We do not currently support this action",
479-
)
480-
],
481-
),
472+
logger.error(f"Invalid instruction: {instruction_input}")
473+
return WebBrowserContent(
474+
command_outputs=[
475+
WebBrowserCommandOutput(
476+
index=0,
477+
output="We do not currently support this action",
478+
)
479+
],
482480
)
483481

484482
def _process_anthropic(self) -> dict:

0 commit comments

Comments
 (0)