@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user