Skip to content

Commit

Permalink
DevContainer update to support aider (#9527)
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee authored Oct 23, 2024
1 parent 6860ee6 commit 3519a1a
Show file tree
Hide file tree
Showing 15 changed files with 1,074 additions and 175 deletions.
109 changes: 109 additions & 0 deletions .aider.conf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
## General Settings

## Load environment variables from a specified file (default: .env in git root)
env-file: .aider/.env

## Specify the model to use for chat and code assistance
## Available models: gpt-4o, claude-3-5-sonnet, o1-preview, deepseek, etc.
# model: gpt-4o

## Model for editing code
# editor-model: gpt-4o

## Suggested number of tokens to use for repo map, use 0 to disable (default: 1024)
map-tokens: 0

## Control how often the repo map is refreshed. Options: auto, always, files, manual (default: auto)
map-refresh: manual

## Enable dark mode for a better terminal appearance on dark backgrounds
dark-mode: true

## Enable pretty, colorized output (default: true)
pretty: true

## Disable streaming responses; waits for full response before displaying
## helps with estimating costs
stream: false
no-stream: true

## Enable caching of prompts to reduce token costs (default: false)
cache-prompts: true

## Show the differences between current and previous file versions
show-diffs: false

## Disable automatic commits after changes made by the AI
auto-commits: false

## Prevent the AI from suggesting shell commands during chats
no-suggest-shell-commands: true

## Number of pings to keep the prompt cache alive at 5-minute intervals (default: 0)
cache-keepalive-pings: 5

## Add aider-specific files to .gitignore (default: true)
gitignore: false

## Automatically lints code after changes using PSScriptAnalyzer (PowerShell linting)
auto-lint: true

## map
show-repo-map: false
#aiderignore: .aider/.aiderignore

## Command to lint PowerShell code using PSScriptAnalyzer
lint-cmd: "pwsh -Command Invoke-ScriptAnalyzer -Path *.ps1"

## Automatically runs tests after code changes using Pester
auto-test: false

## Command to run PowerShell tests using Pester
#test-cmd: "pwsh -Command Invoke-Pester -Path .\\Tests"

## Control verbosity of the output (default: false)
verbose: false

## Specify the input history file
input-history-file: .aider/aider.input.history

## Specify the chat history file
chat-history-file: .aider/aider.chat.history.md

## Specify the LLM history file
llm-history-file: .aider/aider.llm.history

## Specify model-specific settings
model-settings-file: .aider/aider.model.settings.yml
model-metadata-file: .aider/aider.model.metadata.json

## Completion and Suggestions

## Disable completion suggestions for shell commands
suggest-shell-commands: false

## Git Integration

## Enable Git integration to track file changes
git: false

## Completion Menu Colors

## Set the colors for the completion menu
#completion-menu-color: "cyan"
#completion-menu-bg-color: "black"
#completion-menu-current-color: "white"
#completion-menu-current-bg-color: "blue"

## Miscellaneous Settings

## Code Theme
#code-theme: "monokai"

## edit the whole file
edit-format: whole

## yesss
yes-always: true

show-prompts: false
41 changes: 41 additions & 0 deletions .aider/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
##########################################################
# Environment Configuration for Aider and LLMs
# Store API keys and optional settings for OpenAI and Anthropic
##########################################################

# OpenAI API Key for authentication (required)
OPENAI_API_KEY=your-openai-api-key

# Optional: Custom OpenAI API base URL (if using a custom deployment)
# Uncomment and modify if necessary
# OPENAI_API_BASE=https://api.openai.com

# Optional: OpenAI API type and version (customize if needed)
# OPENAI_API_TYPE=custom
# OPENAI_API_VERSION=v1

# Optional: Specify the OpenAI Organization ID if part of an organization
# OPENAI_ORGANIZATION_ID=your-organization-id

##########################################################
# Anthropic API Key and Model Configuration (Optional)
##########################################################

# aider --model claude/<your-model>
# aider --model claude-3-opus-20240229
# Anthropic API Key for Claude models (uncomment if using Claude)
# ANTHROPIC_API_KEY=your-anthropic-api-key

# Optional: Specify a Claude model (e.g., Claude 3.5 Sonnet)
# Uncomment to set a specific Claude model
# AIDER_MODEL=claude-3-5-sonnet-20240620

##########################################################
# Azure OpenAI config (Optional)
##########################################################

# aider --model azure/<your-deployment>
# aider --model azure/gpt-4o
#export AZURE_API_KEY=abcd1234etcetcetcetcetcetcetcetc
#export AZURE_API_VERSION=2024-08-01-preview
#export AZURE_API_BASE=https://<your base>.openai.azure.com/openai/deployments/<your-deployment>/chat/completions
Loading

0 comments on commit 3519a1a

Please sign in to comment.