Skip to content

Commit 3a459a9

Browse files
authored
Merge pull request #259 from vvincent1234/fix/dr-bugs
fix prompt
2 parents 5fde2a0 + 8cf9658 commit 3a459a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/agent/custom_prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def get_user_message(self) -> HumanMessage:
158158
step_info_description = ''
159159

160160
time_str = datetime.now().strftime("%Y-%m-%d %H:%M")
161-
step_info_description += "Current date and time: {time_str}"
161+
step_info_description += f"Current date and time: {time_str}"
162162

163163
elements_text = self.state.element_tree.clickable_elements_to_string(include_attributes=self.include_attributes)
164164

src/utils/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def ainvoke(
6868

6969
response = self.client.chat.completions.create(
7070
model=self.model_name,
71-
messages=messages
71+
messages=message_history
7272
)
7373

7474
reasoning_content = response.choices[0].message.reasoning_content

0 commit comments

Comments
 (0)