Skip to content

Commit aaacd7f

Browse files
committed
Fix bug that was mixed in 3b59e1b
1 parent 69e0703 commit aaacd7f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Public/Assistants/New-Assistant.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function New-Assistant {
250250
if ($PSBoundParameters.ContainsKey('TopP')) {
251251
$PostBody.top_p = $TopP
252252
}
253-
if ($PSBoundParameters.ContainsKey('Format')) {
253+
if ($PSBoundParameters.ContainsKey('ResponseFormat')) {
254254
if ($ResponseFormat -is [type]) {
255255
# Structured Outputs
256256
$typeSchema = ConvertTo-JsonSchema $ResponseFormat

Public/Chat/Request-ChatCompletion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ function Request-ChatCompletion {
413413
$PostBody.top_logprobs = $TopLogProbs
414414
}
415415
}
416-
if ($PSBoundParameters.ContainsKey('Format')) {
416+
if ($PSBoundParameters.ContainsKey('ResponseFormat')) {
417417
if ($ResponseFormat -is [type]) {
418418
# Structured Outputs
419419
$typeSchema = ConvertTo-JsonSchema $ResponseFormat

Public/Runs/Start-ThreadRun.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ function Start-ThreadRun {
328328
$PostBody.tool_choice = @{type = $ToolChoice }
329329
}
330330
}
331-
if ($PSBoundParameters.ContainsKey('Format')) {
331+
if ($PSBoundParameters.ContainsKey('ResponseFormat')) {
332332
if ($ResponseFormat -is [type]) {
333333
# Structured Outputs
334334
$typeSchema = ConvertTo-JsonSchema $ResponseFormat

0 commit comments

Comments
 (0)