Skip to content

Commit

Permalink
fix updater
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Oct 26, 2024
1 parent f2d3146 commit 7d0dbf9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .aider/aider.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ function Update-PesterTest {
The maximum size of test files to process, in bytes. Files larger than this will be skipped.
Defaults to 8KB.
.PARAMETER Model
The AI model to use (e.g., azure/gpt-4o, gpt-4o-mini, claude-3-5-sonnet).
.NOTES
Tags: Testing, Pester
Author: dbatools team
Expand Down Expand Up @@ -61,7 +64,8 @@ function Update-PesterTest {
[int]$Skip,
[string[]]$PromptFilePath = "/workspace/.aider/prompts/template.md",
[string[]]$CacheFilePath = @("/workspace/.aider/prompts/conventions.md","/workspace/private/testing/Get-TestConfig.ps1"),
[int]$MaxFileSize = 8kb
[int]$MaxFileSize = 8kb,
[string]$Model
)
begin {
# Full prompt path
Expand Down Expand Up @@ -158,9 +162,10 @@ function Update-PesterTest {
Message = $cmdPrompt
File = $filename
YesAlways = $true
Stream = $false
NoStream = $true
CachePrompts = $true
ReadFile = $CacheFilePath
Model = $Model
}

Write-Verbose "Invoking Aider to update test file"
Expand Down Expand Up @@ -244,7 +249,7 @@ function Repair-Error {
$aiderParams = @{
Message = $cmdPrompt
File = $filename
Stream = $false
NoStream = $true
CachePrompts = $true
ReadFile = $CacheFilePath
}
Expand Down Expand Up @@ -715,7 +720,7 @@ function Repair-Error {
$aiderParams = @{
Message = $cmdPrompt
File = $filename
Stream = $false
NoStream = $true
CachePrompts = $true
ReadFile = $CacheFilePath
}
Expand Down

0 comments on commit 7d0dbf9

Please sign in to comment.