Skip to content

Commit

Permalink
Remove unnecessary trailing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
mkht committed Oct 7, 2024
1 parent b124f4b commit c815c96
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 36 deletions.
8 changes: 4 additions & 4 deletions Public/Assistants/Get-Assistant.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ function Get-Assistant {
if ($All) {
$Limit = 100
}
$QueryParam.Add('limit', $Limit);
$QueryParam.Add('order', $Order);
$QueryParam.Add('limit', $Limit)
$QueryParam.Add('order', $Order)
if ($After) {
$QueryParam.Add('after', $After);
$QueryParam.Add('after', $After)
}
if ($Before) {
$QueryParam.Add('before', $Before);
$QueryParam.Add('before', $Before)
}
$UriBuilder.Query = $QueryParam.ToString()
$QueryUri = $UriBuilder.Uri
Expand Down
8 changes: 4 additions & 4 deletions Public/Batch/Get-Batch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ function Get-Batch {
if ($All) {
$Limit = 100
}
$QueryParam.Add('limit', $Limit);
# $QueryParam.Add('order', $Order);
$QueryParam.Add('limit', $Limit)
# $QueryParam.Add('order', $Order)
if ($After) {
$QueryParam.Add('after', $After);
$QueryParam.Add('after', $After)
}
# if ($Before) {
# $QueryParam.Add('before', $Before);
# $QueryParam.Add('before', $Before)
# }
$UriBuilder.Query = $QueryParam.ToString()
$QueryUri = $UriBuilder.Uri
Expand Down
2 changes: 1 addition & 1 deletion Public/Files/Get-OpenAIFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function Get-OpenAIFile {
else {
if ($PSBoundParameters.ContainsKey('Purpose')) {
$QueryParam = [System.Web.HttpUtility]::ParseQueryString($UriBuilder.Query)
$QueryParam.Add('purpose', $Purpose);
$QueryParam.Add('purpose', $Purpose)
$UriBuilder.Query = $QueryParam.ToString()
$QueryUri = $UriBuilder.Uri
}
Expand Down
8 changes: 4 additions & 4 deletions Public/Runs/Get-ThreadRun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ function Get-ThreadRun {
if ($All) {
$Limit = 100
}
$QueryParam.Add('limit', $Limit);
$QueryParam.Add('order', $Order);
$QueryParam.Add('limit', $Limit)
$QueryParam.Add('order', $Order)
if ($After) {
$QueryParam.Add('after', $After);
$QueryParam.Add('after', $After)
}
if ($Before) {
$QueryParam.Add('before', $Before);
$QueryParam.Add('before', $Before)
}
$UriBuilder.Query = $QueryParam.ToString()
$QueryUri = $UriBuilder.Uri
Expand Down
8 changes: 4 additions & 4 deletions Public/Runs/Get-ThreadRunStep.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ function Get-ThreadRunStep {
if ($All) {
$Limit = 100
}
$QueryParam.Add('limit', $Limit);
$QueryParam.Add('order', $Order);
$QueryParam.Add('limit', $Limit)
$QueryParam.Add('order', $Order)
if ($After) {
$QueryParam.Add('after', $After);
$QueryParam.Add('after', $After)
}
if ($Before) {
$QueryParam.Add('before', $Before);
$QueryParam.Add('before', $Before)
}
}

Expand Down
10 changes: 5 additions & 5 deletions Public/Threads/Get-ThreadMessage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,16 @@ function Get-ThreadMessage {
if ($All) {
$Limit = 100
}
$QueryParam.Add('limit', $Limit);
$QueryParam.Add('order', $Order);
$QueryParam.Add('limit', $Limit)
$QueryParam.Add('order', $Order)
if ($RunId) {
$QueryParam.Add('run_id', $RunId);
$QueryParam.Add('run_id', $RunId)
}
if ($After) {
$QueryParam.Add('after', $After);
$QueryParam.Add('after', $After)
}
if ($Before) {
$QueryParam.Add('before', $Before);
$QueryParam.Add('before', $Before)
}
$UriBuilder.Query = $QueryParam.ToString()
$QueryUri = $UriBuilder.Uri
Expand Down
10 changes: 5 additions & 5 deletions Public/VectorStores/Batches/Get-VectorStoreFileInBatch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,16 @@ function Get-VectorStoreFileInBatch {
if ($All) {
$Limit = 100
}
$QueryParam.Add('limit', $Limit);
$QueryParam.Add('order', $Order);
$QueryParam.Add('limit', $Limit)
$QueryParam.Add('order', $Order)
if ($After) {
$QueryParam.Add('after', $After);
$QueryParam.Add('after', $After)
}
if ($Before) {
$QueryParam.Add('before', $Before);
$QueryParam.Add('before', $Before)
}
if ($Filter) {
$QueryParam.Add('filter', $Filter);
$QueryParam.Add('filter', $Filter)
}
$UriBuilder.Query = $QueryParam.ToString()
$QueryUri = $UriBuilder.Uri
Expand Down
10 changes: 5 additions & 5 deletions Public/VectorStores/Files/Get-VectorStoreFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,16 @@ function Get-VectorStoreFile {
if ($All) {
$Limit = 100
}
$QueryParam.Add('limit', $Limit);
$QueryParam.Add('order', $Order);
$QueryParam.Add('limit', $Limit)
$QueryParam.Add('order', $Order)
if ($After) {
$QueryParam.Add('after', $After);
$QueryParam.Add('after', $After)
}
if ($Before) {
$QueryParam.Add('before', $Before);
$QueryParam.Add('before', $Before)
}
if ($Filter) {
$QueryParam.Add('filter', $Filter);
$QueryParam.Add('filter', $Filter)
}
$UriBuilder.Query = $QueryParam.ToString()
$QueryUri = $UriBuilder.Uri
Expand Down
8 changes: 4 additions & 4 deletions Public/VectorStores/Get-VectorStore.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ function Get-VectorStore {
if ($All) {
$Limit = 100
}
$QueryParam.Add('limit', $Limit);
$QueryParam.Add('order', $Order);
$QueryParam.Add('limit', $Limit)
$QueryParam.Add('order', $Order)
if ($After) {
$QueryParam.Add('after', $After);
$QueryParam.Add('after', $After)
}
if ($Before) {
$QueryParam.Add('before', $Before);
$QueryParam.Add('before', $Before)
}
$UriBuilder.Query = $QueryParam.ToString()
$QueryUri = $UriBuilder.Uri
Expand Down

0 comments on commit c815c96

Please sign in to comment.