config_example.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Log level INFO / DEBUG / WARNING / ERROR / CRITICAL
  2. log_level: "INFO"
  3. # Base workspace directory, it's better to set it to an absolute path
  4. base_dir: "/Users/jason/.nanobrowser"
  5. # Whether to save chat history into the workspace/messages directory
  6. save_chat_history: true
  7. # Whether to log execution events
  8. log_events: true
  9. # Default max steps allowed for a single task
  10. max_steps: 100
  11. # Default max errors allowed for a single task
  12. max_errors: 20
  13. # Default max tool rounds allowed for a single task
  14. max_tool_rounds: 20
  15. # Browser configuration
  16. # Only needed if chrome_app_path can not be detected automatically
  17. #
  18. # browser:
  19. # chrome_app_path: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
  20. # cdp_port: 9222
  21. # Configurations for the agent planner and navigator
  22. # Note:
  23. # api_key is optional, can also be set via environment variables, example:
  24. # export OPENAI_API_KEY=sk-...
  25. # export ANTHROPIC_API_KEY=sk-...
  26. #
  27. # Agent planner configuration
  28. planner:
  29. model: "gpt-4o"
  30. model_provider: "openai"
  31. api_key: "sk-..." # Optional
  32. inference_config:
  33. temperature: 0
  34. top_p: 0.001
  35. # Agent navigator configuration
  36. navigator:
  37. model: "gpt-4o"
  38. model_provider: "openai"
  39. api_key: "sk-..."
  40. inference_config:
  41. temperature: 0
  42. top_p: 0.001
  43. # Agent planner configuration
  44. # planner:
  45. # model: "claude-3-5-sonnet-20241022"
  46. # model_provider: "anthropic"
  47. # api_key: "sk-..." # Optional
  48. # inference_config:
  49. # temperature: 0.1
  50. # top_p: 0.1
  51. # # Agent navigator configuration
  52. # navigator:
  53. # model: "claude-3-5-sonnet-20241022"
  54. # model_provider: "anthropic"
  55. # api_key: "sk-..."
  56. # inference_config:
  57. # temperature: 0.1
  58. # top_p: 0.1
  59. # WebSocket server configuration
  60. # Do not change this unless you know what you are doing
  61. server:
  62. host: "127.0.0.1"
  63. port: 6768