Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

format

mertunsallb72ced8736a6
diff --git a/browser_use/llm/openai/chat.py b/browser_use/llm/openai/chat.py
index 6a994fed1..c225dc822 100644
--- a/browser_use/llm/openai/chat.py
+++ b/browser_use/llm/openai/chat.py
@@ -204,9 +204,7 @@ class ChatOpenAI(BaseChatModel):
openai_messages[0]['content'] += schema_text
elif isinstance(openai_messages[0]['content'], Iterable):
openai_messages[0]['content'] = list(openai_messages[0]['content']) + [
- ChatCompletionContentPartTextParam(
- text=schema_text, type='text'
- )
+ ChatCompletionContentPartTextParam(text=schema_text, type='text')
]
# Return structured response