Fix issue #3325: '[Documentation]: config.toml options should be documented on the doc web site'

This commit is contained in:
openhands 2024-10-01 14:24:18 +00:00
parent 1109637efb
commit e1a848e7cd
2 changed files with 46 additions and 0 deletions

View File

@ -8,6 +8,11 @@ const sidebars: SidebarsConfig = {
label: 'Getting Started',
id: 'usage/getting-started',
},
{
type: 'doc',
label: 'Configuration',
id: 'src/configuration',
},
{
type: 'category',
label: 'LLMs',

41
docs/src/configuration.md Normal file
View File

@ -0,0 +1,41 @@
# OpenDevin Configuration Options
OpenDevin provides various configuration options to customize its behavior. This page documents all available options.
## General Configuration
- `project_name`: The name of your project.
- `output_dir`: The directory where output files will be saved.
- `max_iterations`: The maximum number of iterations for the AI to attempt solving a task.
- `max_time`: The maximum time (in seconds) for the AI to work on a task.
## AI Model Configuration
- `model`: The AI model to use (e.g., "gpt-4", "gpt-3.5-turbo").
- `temperature`: Controls the randomness of the AI's output (0.0 to 1.0).
- `max_tokens`: The maximum number of tokens to generate in the AI's response.
## Execution Environment
- `python_path`: The path to the Python interpreter to use.
- `allowed_modules`: A list of Python modules that are allowed to be imported.
- `timeout`: The maximum execution time for a single command (in seconds).
## Logging and Debugging
- `log_level`: The level of logging detail (e.g., "DEBUG", "INFO", "WARNING", "ERROR").
- `log_file`: The file path for saving logs.
- `debug_mode`: Enable or disable debug mode (true/false).
## Security
- `allow_internet_access`: Allow the AI to access the internet (true/false).
- `allowed_domains`: A list of allowed domains if internet access is enabled.
- `max_file_size`: The maximum size (in bytes) of files that can be created or modified.
## Custom Behavior
- `custom_prompts`: A dictionary of custom prompts to use for specific tasks.
- `task_specific_settings`: A dictionary of settings that apply to specific tasks or modules.
Please refer to the OpenDevin documentation for more detailed information on how to use these configuration options in your project.