From 79209f0f3d0532b979f4c83a5166676537ae2b82 Mon Sep 17 00:00:00 2001 From: mkht Date: Wed, 15 May 2024 00:40:24 +0900 Subject: [PATCH] Fix issue on PowerShell 5.1 --- Public/Batch/Wait-Batch.ps1 | 2 +- Public/Runs/Wait-ThreadRun.ps1 | 2 +- Public/VectorStores/Batches/Wait-VectorStoreFileBatch.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Public/Batch/Wait-Batch.ps1 b/Public/Batch/Wait-Batch.ps1 index b200d22..f0e9a7a 100644 --- a/Public/Batch/Wait-Batch.ps1 +++ b/Public/Batch/Wait-Batch.ps1 @@ -105,7 +105,7 @@ function Wait-Batch { } try { - [uint]$PollCounter = 0 + [uint32]$PollCounter = 0 $ProgressTitle = 'Waiting for completion...' do { #Wait diff --git a/Public/Runs/Wait-ThreadRun.ps1 b/Public/Runs/Wait-ThreadRun.ps1 index 359987a..cae33ec 100644 --- a/Public/Runs/Wait-ThreadRun.ps1 +++ b/Public/Runs/Wait-ThreadRun.ps1 @@ -120,7 +120,7 @@ function Wait-ThreadRun { } try { - [uint]$PollCounter = 0 + [uint32]$PollCounter = 0 $ProgressTitle = 'Waiting for completes...' do { #Wait diff --git a/Public/VectorStores/Batches/Wait-VectorStoreFileBatch.ps1 b/Public/VectorStores/Batches/Wait-VectorStoreFileBatch.ps1 index fa4c260..bbe53d5 100644 --- a/Public/VectorStores/Batches/Wait-VectorStoreFileBatch.ps1 +++ b/Public/VectorStores/Batches/Wait-VectorStoreFileBatch.ps1 @@ -116,7 +116,7 @@ function Wait-VectorStoreFileBatch { } try { - [uint]$PollCounter = 0 + [uint32]$PollCounter = 0 $ProgressTitle = 'Waiting for completion...' do { #Wait