Skip to content

Commit

Permalink
testgrrr
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Jun 29, 2024
1 parent 7d4ebc9 commit e0c73f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions finetuna.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ foreach ($file in (Get-ChildItem -Path $publicdir -Filter *.ps1)) {
. Import-ModuleFile -Path $file.FullName
}

# Import all internal functions
foreach ($function in (Get-ChildItem "$ModuleRoot\private\" -Filter "*.ps1" -Recurse -ErrorAction Ignore)) {
. Import-ModuleFile -Path $function.FullName
}

$PSDefaultParameterValues["*:NoTypeInformation"] = $true

Set-Alias -Name Invoke-TunedChat -Value Invoke-TuneChat
Expand Down
3 changes: 2 additions & 1 deletion private/Get-OpenAIAPIParameter.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ function Get-OpenAIAPIParameter {
[hashtable]
$Parameters = $script:defaultapiparms
)
if (-not $Parameters) {
if (-not $Parameters.ApiKey) {
# get context values to pass to Get-OpenAIAPIParameter
$context = Get-OpenAIContext
if ($context.ApiKey) {
write-warning $context.ApiKey
$Parameters = @{
ApiKey = $context.ApiKey
AuthType = $context.AuthType
Expand Down

0 comments on commit e0c73f2

Please sign in to comment.