Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unified Configuration File in TOML Format #1174

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

similato87
Copy link
Collaborator

@similato87 similato87 commented Jun 19, 2024

PR Introduction: Unified Configuration File in TOML Format

Feature Description

Based on issue #1165, this PR introduces a unified configuration file in TOML format for the gpt-engineer project. This file will centralize various project settings, including:

  • API keys for OpenAPI and model configurations
  • Linting switches
  • File extension settings for git filters
  • Self-healing mechanism parameters (e.g., retry times)
  • Additional settings suggested by the community

The configuration file will be persistent on disk and presented to users upon each application run, with an option to bypass opening the file while being notified of its existence and purpose.

Motivation and Application

The project manages configurations through multiple files, complicating maintenance and user experience. A unified configuration file will simplify management, enhance maintainability, and provide a consistent method for setting and reviewing configurations. The TOML format ensures readability and ease of use.

Implementation Plan

  1. Create config.toml: Located in the project root directory, loaded at the start of gpte execution.
  2. CLI Arguments: Consider moving some command-line arguments to the configuration file.
  3. Use project_config.py: Adapted to parse the new configuration.
  4. Update file_selector.py: Remove the part for old linting option.
  5. Update steps.py: Get or set the configs in the main function when needed.
  6. .....

@similato87 similato87 linked an issue Jun 19, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Implement a Unified Configuration File for Project Settings
1 participant