fix prompt

This commit is contained in:
vvincent1234
2025-02-09 11:27:36 +08:00
parent 0d898897d8
commit 8cf96583a8
2 changed files with 2 additions and 2 deletions

View File

@@ -158,7 +158,7 @@ class CustomAgentMessagePrompt(AgentMessagePrompt):
step_info_description = ''
time_str = datetime.now().strftime("%Y-%m-%d %H:%M")
step_info_description += "Current date and time: {time_str}"
step_info_description += f"Current date and time: {time_str}"
elements_text = self.state.element_tree.clickable_elements_to_string(include_attributes=self.include_attributes)

View File

@@ -68,7 +68,7 @@ class DeepSeekR1ChatOpenAI(ChatOpenAI):
response = self.client.chat.completions.create(
model=self.model_name,
messages=messages
messages=message_history
)
reasoning_content = response.choices[0].message.reasoning_content