Skip to content

Commit

Permalink
Update finetuna.Tests.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Jun 29, 2024
1 parent b0e8222 commit 5b16483
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/finetuna.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
BeforeAll {
if (-not $env:OPENAI_API_KEY) {
throw "OPENAI_API_KEY environment variable is not set."
}
Import-Module ./finetuna.psd1
$global:OPENAI_API_KEY = $PSDefaultParameterValues['Initialize-APIKey:ApiKey'] = $env:OPENAI_API_KEY
$script:sampleFilePath = Get-ChildItem -Recurse totbot-tee-tune.jsonl
}
Describe "finetuna Module Tests" {
BeforeEach {
if (-not $env:OPENAI_API_KEY) {
throw "OPENAI_API_KEY environment variable is not set."
}
Import-Module ./finetuna.psd1
$global:OPENAI_API_KEY = $PSDefaultParameterValues['Initialize-APIKey:ApiKey'] = $env:OPENAI_API_KEY
$script:sampleFilePath = Get-ChildItem -Recurse totbot-tee-tune.jsonl
$splat = @{
ApiType = 'openai'
ApiKey = $env:OPENAI_API_KEY
Expand Down

0 comments on commit 5b16483

Please sign in to comment.