mirror of
https://github.com/web-arena-x/webarena.git
synced 2026-02-06 03:06:47 +00:00
fix force_prefix missing bug
This commit is contained in:
parent
0e7bcda0ba
commit
741292e1d2
@ -126,6 +126,10 @@ class PromptAgent(Agent):
|
||||
n = 0
|
||||
while True:
|
||||
response = call_llm(lm_config, prompt)
|
||||
force_prefix = self.prompt_constructor.instruction[
|
||||
"meta_data"
|
||||
].get("force_prefix", "")
|
||||
response = f"{force_prefix}{response}"
|
||||
n += 1
|
||||
try:
|
||||
parsed_response = self.prompt_constructor.extract_action(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user