Skip to content

Commit 3519a1a

Browse files
DevContainer update to support aider (#9527)
1 parent 6860ee6 commit 3519a1a

15 files changed

+1074
-175
lines changed

.aider.conf.yml

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
## General Settings
2+
3+
## Load environment variables from a specified file (default: .env in git root)
4+
env-file: .aider/.env
5+
6+
## Specify the model to use for chat and code assistance
7+
## Available models: gpt-4o, claude-3-5-sonnet, o1-preview, deepseek, etc.
8+
# model: gpt-4o
9+
10+
## Model for editing code
11+
# editor-model: gpt-4o
12+
13+
## Suggested number of tokens to use for repo map, use 0 to disable (default: 1024)
14+
map-tokens: 0
15+
16+
## Control how often the repo map is refreshed. Options: auto, always, files, manual (default: auto)
17+
map-refresh: manual
18+
19+
## Enable dark mode for a better terminal appearance on dark backgrounds
20+
dark-mode: true
21+
22+
## Enable pretty, colorized output (default: true)
23+
pretty: true
24+
25+
## Disable streaming responses; waits for full response before displaying
26+
## helps with estimating costs
27+
stream: false
28+
no-stream: true
29+
30+
## Enable caching of prompts to reduce token costs (default: false)
31+
cache-prompts: true
32+
33+
## Show the differences between current and previous file versions
34+
show-diffs: false
35+
36+
## Disable automatic commits after changes made by the AI
37+
auto-commits: false
38+
39+
## Prevent the AI from suggesting shell commands during chats
40+
no-suggest-shell-commands: true
41+
42+
## Number of pings to keep the prompt cache alive at 5-minute intervals (default: 0)
43+
cache-keepalive-pings: 5
44+
45+
## Add aider-specific files to .gitignore (default: true)
46+
gitignore: false
47+
48+
## Automatically lints code after changes using PSScriptAnalyzer (PowerShell linting)
49+
auto-lint: true
50+
51+
## map
52+
show-repo-map: false
53+
#aiderignore: .aider/.aiderignore
54+
55+
## Command to lint PowerShell code using PSScriptAnalyzer
56+
lint-cmd: "pwsh -Command Invoke-ScriptAnalyzer -Path *.ps1"
57+
58+
## Automatically runs tests after code changes using Pester
59+
auto-test: false
60+
61+
## Command to run PowerShell tests using Pester
62+
#test-cmd: "pwsh -Command Invoke-Pester -Path .\\Tests"
63+
64+
## Control verbosity of the output (default: false)
65+
verbose: false
66+
67+
## Specify the input history file
68+
input-history-file: .aider/aider.input.history
69+
70+
## Specify the chat history file
71+
chat-history-file: .aider/aider.chat.history.md
72+
73+
## Specify the LLM history file
74+
llm-history-file: .aider/aider.llm.history
75+
76+
## Specify model-specific settings
77+
model-settings-file: .aider/aider.model.settings.yml
78+
model-metadata-file: .aider/aider.model.metadata.json
79+
80+
## Completion and Suggestions
81+
82+
## Disable completion suggestions for shell commands
83+
suggest-shell-commands: false
84+
85+
## Git Integration
86+
87+
## Enable Git integration to track file changes
88+
git: false
89+
90+
## Completion Menu Colors
91+
92+
## Set the colors for the completion menu
93+
#completion-menu-color: "cyan"
94+
#completion-menu-bg-color: "black"
95+
#completion-menu-current-color: "white"
96+
#completion-menu-current-bg-color: "blue"
97+
98+
## Miscellaneous Settings
99+
100+
## Code Theme
101+
#code-theme: "monokai"
102+
103+
## edit the whole file
104+
edit-format: whole
105+
106+
## yesss
107+
yes-always: true
108+
109+
show-prompts: false

.aider/.env.example

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
##########################################################
2+
# Environment Configuration for Aider and LLMs
3+
# Store API keys and optional settings for OpenAI and Anthropic
4+
##########################################################
5+
6+
# OpenAI API Key for authentication (required)
7+
OPENAI_API_KEY=your-openai-api-key
8+
9+
# Optional: Custom OpenAI API base URL (if using a custom deployment)
10+
# Uncomment and modify if necessary
11+
# OPENAI_API_BASE=https://api.openai.com
12+
13+
# Optional: OpenAI API type and version (customize if needed)
14+
# OPENAI_API_TYPE=custom
15+
# OPENAI_API_VERSION=v1
16+
17+
# Optional: Specify the OpenAI Organization ID if part of an organization
18+
# OPENAI_ORGANIZATION_ID=your-organization-id
19+
20+
##########################################################
21+
# Anthropic API Key and Model Configuration (Optional)
22+
##########################################################
23+
24+
# aider --model claude/<your-model>
25+
# aider --model claude-3-opus-20240229
26+
# Anthropic API Key for Claude models (uncomment if using Claude)
27+
# ANTHROPIC_API_KEY=your-anthropic-api-key
28+
29+
# Optional: Specify a Claude model (e.g., Claude 3.5 Sonnet)
30+
# Uncomment to set a specific Claude model
31+
# AIDER_MODEL=claude-3-5-sonnet-20240620
32+
33+
##########################################################
34+
# Azure OpenAI config (Optional)
35+
##########################################################
36+
37+
# aider --model azure/<your-deployment>
38+
# aider --model azure/gpt-4o
39+
#export AZURE_API_KEY=abcd1234etcetcetcetcetcetcetcetc
40+
#export AZURE_API_VERSION=2024-08-01-preview
41+
#export AZURE_API_BASE=https://<your base>.openai.azure.com/openai/deployments/<your-deployment>/chat/completions

0 commit comments

Comments
 (0)