You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invoke-OpenAIAPIRequest: C:\Program Files\WindowsPowerShell\Modules\PSOpenAI\3.14.0\Public\Files\Add-OpenAIFile.ps1:95:21
Line |
95 | $Response = Invoke-OpenAIAPIRequest @params
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OpenAI API returned an 400 (Bad Request) Error: Invalid file for Batch API. Must be utf-8 encoded
Any suggestions?
Many thanks!
L.
The text was updated successfully, but these errors were encountered:
Make sure the file you are about to upload is encoded in UTF-8.
If you try to upload a file saved in a different encoding, such as UTF-16 or UTF-7, you will receive that error.
When I try to use Add-OpeAIFile with the purpuse "batch" like this for example:
$upload = Add-OpenAIFile -File $file.FullName -Purpose "batch"
I receive this error:
Any suggestions?
Many thanks!
L.
The text was updated successfully, but these errors were encountered: