-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
ec1851e
030f901
34f4fab
3b358d8
3a83be5
e7b1f4d
ce067d5
fb83fe9
d81e7ca
5eab6a4
94505c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# config.toml | ||
# Unified configuration file for the gpt-engineer project | ||
|
||
# API Configuration | ||
[api] | ||
# API key for OpenAPI | ||
# OPENAI_API_KEY=Your personal OpenAI API key from https://platform.openai.com/account/api-keys | ||
OPENAI_API_KEY = "your_api_key_here" | ||
ANTHROPIC_API_KEY = "your_anthropic_api_key_here" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest not adding this here, since the configuration file is checked into git. Let users handle it with env vars/dotenv imo, or by a separate config file ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ATheorell and I have agreed to keep all the current behaviour intact while providing an additional option to toggle all configurations in a unified way. The current interfaces, like CLI commands and env files, will still have higher priority. If the user doesn't provide one, GPT-engineer will default to using the config.toml file, offering a more convenient way for users to view and adjust all configurations simultaneously. This approach ensures flexibility while maintaining ease of use. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Additionally, the reason for placing the |
||
# Model configurations | ||
[model] | ||
model_name = "gpt-4o" | ||
# Controls randomness: lower values for more focused, deterministic outputs | ||
temperature = 0.1 | ||
# Endpoint for your Azure OpenAI Service (https://xx.openai.azure.com). | ||
# In that case, the given model is the deployment name chosen in the Azure AI Studio. | ||
azure_endpoint = "" | ||
|
||
# improve mode Configuration | ||
[improve] | ||
# Enable or disable linting (true/false) | ||
is_linting = true | ||
# Enable or disable file selection. "true" will open your default editor to select the file. (true/false) | ||
is_file_selection = true | ||
|
||
# Git Filter Configuration | ||
[git_filter] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest this section be renamed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fully agreed. Once all the functions are finalized, we'll rename this section and revise all the names in a subsequent commit. For now, I've just placed some placeholders here to help identify and locate all configurations. |
||
# File extension settings for the git filter | ||
file_extensions = ["py", "toml", "md"] | ||
|
||
# Self-Healing Mechanism Configuration | ||
[self_healing] | ||
# Number of retry attempts for self-healing mechanisms (0-2) | ||
retry_attempts = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused, isn't this configuration file gpt-engineer specific?
It would probably be a confusingly general name for most projects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fully agreed. I will do that in the following commits.