We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4179499 commit 1771e2cCopy full SHA for 1771e2c
1 file changed
Private/Invoke-OpenAIAPIRequest.ps1
@@ -153,6 +153,7 @@ function Invoke-OpenAIAPIRequest {
153
$IwrParam.Body = ([System.Text.Encoding]::UTF8.GetBytes($JsonBody))
154
}
155
else {
156
+ if ($IsDebug) { try { $JsonBody = ($Body | ConvertTo-Json -Compress -Depth 0) }catch {} } # Only for debug output
157
$IwrParam.Body = $InternalParams.Body
158
159
0 commit comments