Skip to content

Commit

Permalink
Bug removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Agazoth committed Dec 2, 2024
1 parent b726b0d commit 2100f09
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions __tests__/IntegrationTests/Integration-AIToolkit.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ Describe "Test chat endpoints" -Skip:($null -eq $info) {
}
Import-AIProvider @params
}


}
Context "Invoke-OAIChatCompletion" {
It "Invoke-OAIChatCompletion generates an answer" -Skip:($null -eq $info) {
$Prompt = "What is the capitol of France"
Expand All @@ -27,11 +24,13 @@ Context "Invoke-OAIChatCompletion" {
$Answer | Should -Match "Paris"
}
It "Moniker syntax generates an answer" -Skip:($null -eq $info) {
$Model = Get-AIModel -ProviderName AIToolkit
$Model = Get-AIModel
$Prompt = "What is the capitol of Italy"
$model.Provider.Name | Should -Be 'AIToolkit'
$Answer = $Model.Chat($Prompt)
$Answer | Should -Not -BeNullOrEmpty
$Answer | Should -BeOfType [String]
$Answer | Should -Match "Rome"
}
}
}
}

0 comments on commit 2100f09

Please sign in to comment.