Skip to content

Commit

Permalink
Adicionado suporte ao Google Gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
rrg92 committed Aug 16, 2024
1 parent 174c9ca commit 8bd3d9f
Show file tree
Hide file tree
Showing 2 changed files with 407 additions and 2 deletions.
5 changes: 3 additions & 2 deletions powershai/powershai.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ Function InvokeHttp {

$Lines = @();

while($SseResult -ne $false){
while($SseResult -ne $false -and !$IO.EndOfStream){
verbose " Reading next line..."
$line = $IO.ReadLine()

Expand Down Expand Up @@ -687,12 +687,13 @@ function Get-AiChat {
if(!$model){
$FuncParams['model'] = GetCurrentProviderData DefaultModel
}




PowerShaiProviderFunc "Chat" -FuncParams $FuncParams;
}


<#
.DESCRIPTION
Esta é uma função auxiliar para ajudar a fazer o processamento de tools mais fácil com powershell.
Expand Down
Loading

0 comments on commit 8bd3d9f

Please sign in to comment.