Merge pull request #259 from vvincent1234/fix/dr-bugs

fix prompt
This commit is contained in:
warmshao
2025-02-09 11:28:56 +08:00
committed by GitHub
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