Back to all reviewers

Model initialization formatting

browser-use/browser-use
Based on 2 comments
Other

Maintain consistent formatting when initializing AI models and agents. Use proper spacing around assignment operators and consistent indentation for constructor parameters to improve code readability and follow Python style conventions.

AI Other

Reviewer Prompt

Maintain consistent formatting when initializing AI models and agents. Use proper spacing around assignment operators and consistent indentation for constructor parameters to improve code readability and follow Python style conventions.

Key formatting rules:

  • Add spaces around assignment operators (=)
  • Use consistent indentation for multi-line constructor parameters
  • Align parameters vertically when spanning multiple lines

Example of proper formatting:

# Good: proper spacing and indentation
llm = ChatOpenAI(base_url='https://api.novita.ai/v3/openai', model='deepseek/deepseek-v3-0324', api_key=SecretStr(api_key))

agent = Agent(
    task="Your task here",
    llm=llm,
    planner_llm=planner_llm,
    extend_planner_system_message=extend_planner_system_message
)

This ensures AI model initialization code is clean, readable, and follows established Python formatting standards.

2
Comments Analyzed
Other
Primary Language
AI
Category

Source Discussions