config.template.toml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. ###################### OpenDevin Configuration Example ######################
  2. #
  3. # All settings have default values, so you only need to uncomment and
  4. # modify what you want to change
  5. # The fields within each section are sorted in alphabetical order.
  6. #
  7. ##############################################################################
  8. #################################### Core ####################################
  9. # General core configurations
  10. ##############################################################################
  11. [core]
  12. # API key for E2B
  13. #e2b_api_key = ""
  14. # Base path for the workspace
  15. workspace_base = "./workspace"
  16. # Cache directory path
  17. #cache_dir = "/tmp/cache"
  18. # Debugging enabled
  19. #debug = false
  20. # Disable color in terminal output
  21. #disable_color = false
  22. # Enable saving and restoring the session when run from CLI
  23. #enable_cli_session = false
  24. # File store path
  25. #file_store_path = "/tmp/file_store"
  26. # File store type
  27. #file_store = "memory"
  28. # List of allowed file extensions for uploads
  29. #file_uploads_allowed_extensions = [".*"]
  30. # Maximum file size for uploads, in megabytes
  31. #file_uploads_max_file_size_mb = 0
  32. # Maximum budget per task, 0.0 means no limit
  33. #max_budget_per_task = 0.0
  34. # Maximum number of iterations
  35. #max_iterations = 100
  36. # Path to mount the workspace in the sandbox
  37. #workspace_mount_path_in_sandbox = "/workspace"
  38. # Path to mount the workspace
  39. #workspace_mount_path = ""
  40. # Path to rewrite the workspace mount path to
  41. #workspace_mount_rewrite = ""
  42. # Run as devin
  43. #run_as_devin = true
  44. # Runtime environment
  45. #runtime = "eventstream"
  46. # Name of the default agent
  47. #default_agent = "CodeActAgent"
  48. #################################### LLM #####################################
  49. # Configuration for LLM models (group name starts with 'llm')
  50. # use 'llm' for the default LLM config
  51. ##############################################################################
  52. [llm]
  53. # AWS access key ID
  54. #aws_access_key_id = ""
  55. # AWS region name
  56. #aws_region_name = ""
  57. # AWS secret access key
  58. #aws_secret_access_key = ""
  59. # API key to use
  60. api_key = "your-api-key"
  61. # API base URL
  62. #base_url = ""
  63. # API version
  64. #api_version = ""
  65. # Cost per input token
  66. #input_cost_per_token = 0.0
  67. # Cost per output token
  68. #output_cost_per_token = 0.0
  69. # Custom LLM provider
  70. #custom_llm_provider = ""
  71. # Embedding API base URL
  72. #embedding_base_url = ""
  73. # Embedding deployment name
  74. #embedding_deployment_name = ""
  75. # Embedding model to use
  76. embedding_model = ""
  77. # Maximum number of characters in an observation's content
  78. #max_message_chars = 10000
  79. # Maximum number of input tokens
  80. #max_input_tokens = 0
  81. # Maximum number of output tokens
  82. #max_output_tokens = 0
  83. # Model to use
  84. model = "gpt-4o"
  85. # Number of retries to attempt
  86. #num_retries = 5
  87. # Retry maximum wait time
  88. #retry_max_wait = 60
  89. # Retry minimum wait time
  90. #retry_min_wait = 3
  91. # Temperature for the API
  92. #temperature = 0.0
  93. # Timeout for the API
  94. #timeout = 0
  95. # Top p for the API
  96. #top_p = 0.5
  97. [llm.gpt3]
  98. # API key to use
  99. api_key = "your-api-key"
  100. # Model to use
  101. model = "gpt-3.5"
  102. #################################### Agent ###################################
  103. # Configuration for agents (group name starts with 'agent')
  104. # Use 'agent' for the default agent config
  105. # otherwise, group name must be `agent.<agent_name>` (case-sensitive), e.g.
  106. # agent.CodeActAgent
  107. ##############################################################################
  108. [agent]
  109. # Memory enabled
  110. #memory_enabled = false
  111. # Memory maximum threads
  112. #memory_max_threads = 2
  113. # LLM config group to use
  114. #llm_config = 'llm'
  115. [agent.RepoExplorerAgent]
  116. # Example: use a cheaper model for RepoExplorerAgent to reduce cost, especially
  117. # useful when an agent doesn't demand high quality but uses a lot of tokens
  118. llm_config = 'gpt3'
  119. #################################### Sandbox ###################################
  120. # Configuration for the sandbox
  121. ##############################################################################
  122. [sandbox]
  123. # Sandbox timeout in seconds
  124. #timeout = 120
  125. # Sandbox user ID
  126. #user_id = 1000
  127. # Container image to use for the sandbox
  128. #container_image = "ghcr.io/opendevin/sandbox:main"
  129. # Use host network
  130. #use_host_network = false
  131. # Enable auto linting after editing
  132. #enable_auto_lint = false
  133. #################################### Eval ####################################
  134. # Configuration for the evaluation, please refer to the specific evaluation
  135. # plugin for the available options
  136. ##############################################################################