Skip to content

Commit bb5227e

Browse files
committed
Use system message in web_browser for anthropic
1 parent 9a4c3d8 commit bb5227e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llmstack/processors/providers/promptly/web_browser.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class WebBrowserConfiguration(ApiProcessorSchema):
301301
)
302302
system_message: str = Field(
303303
description="System message to use",
304-
default=DEFAULT_SYSTEM_MESSAGE,
304+
default="",
305305
json_schema_extra={"widget": "textarea"},
306306
)
307307
seed: Optional[int] = Field(
@@ -449,7 +449,8 @@ def _process_anthropic(self) -> dict:
449449
messages = [
450450
{
451451
"role": "system",
452-
"content": f"<SYSTEM_CAPABILITY> You are utilising a virtual chrome browser. If user asks you to visit a website, you can simply start your responses assuming the browser is opened and the current page is {self._input.start_url}.",
452+
"content": self._config.system_message
453+
or f"You are utilising a virtual chrome browser. If user asks you to visit a website, you can simply start your responses assuming the browser is opened and the current page is {self._input.start_url}.",
453454
},
454455
{
455456
"role": "user",
@@ -753,7 +754,7 @@ def process(self) -> dict:
753754
messages = [
754755
{
755756
"role": "system",
756-
"content": self._config.system_message,
757+
"content": self._config.system_message or DEFAULT_SYSTEM_MESSAGE,
757758
},
758759
{
759760
"role": "user",

0 commit comments

Comments
 (0)