Skip to content

Commit

Permalink
Fix Status for Wait
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Jun 19, 2024
1 parent e24c0ff commit 58d3c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Initialize-VectorStore.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function Initialize-VectorStore {

$uploads = Get-ChildItem $commandfiles | Register-OpenAIFile -Purpose "assistants"
$filebatch = PSOpenAI\Start-VectorStoreFileBatch -VectorStore $vectorStore -FileId $uploads.id
$null = PSOpenAI\Wait-VectorStoreFileBatch -VectorStore $vectorStore -BatchId $filebatch.id -StatusForWait 'completed'
$null = PSOpenAI\Wait-VectorStoreFileBatch -VectorStore $vectorStore -BatchId $filebatch.id -StatusForWait ('queued', 'in_progress', 'cancelling')
Write-Verbose "Uploaded batch $($i + 1) of $batches to vector store: $storename"
Start-Sleep 10

Expand Down

0 comments on commit 58d3c4c

Please sign in to comment.