Skip to content

Commit

Permalink
Some minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rrg92 committed Sep 10, 2024
1 parent b99672d commit 1cdc661
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 601 deletions.
8 changes: 7 additions & 1 deletion powershai/lib/http.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,13 @@ function Invoke-Http {

if($SseCallBack){
$Params = [PsCustomObject]@{ line = $HttpResult.text }
& $SseCallBack $Params

#This prevent continue inside script affect outerloop!
$WrapContinue = $true;
while($WrapContinue){
$WrapContinue = $false;
& $SseCallBack $Params
}
}

if($HttpResult.completed){
Expand Down
Loading

0 comments on commit 1cdc661

Please sign in to comment.