⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.98k
stars
519
forks
source link
[Bug]: Error: First argument to "Http\Message\MultipartStream\MultipartStreamBuilder::createStream()" must be a string, resource or StreamInterface. #466
This fails wit the following error: Error: First argument to "Http\Message\MultipartStream\MultipartStreamBuilder::createStream()" must be a string, resource or StreamInterface.
Debugging Http\Message\MultipartStream\MultipartStreamBuilder::createStream() shows $resourse from private function createStream($resource) is set to an array of array([0]=> 'segment', [1]=>'word')
Description
This fails wit the following error: Error: First argument to "Http\Message\MultipartStream\MultipartStreamBuilder::createStream()" must be a string, resource or StreamInterface.
Debugging Http\Message\MultipartStream\MultipartStreamBuilder::createStream() shows $resourse from private function createStream($resource) is set to an array of array([0]=> 'segment', [1]=>'word')
removing
fixes the error and the transcription works correctly.
Steps To Reproduce
Just use the above like is shown in the example from the transcription read me file.
OpenAI PHP Client Version
v0.7.3
PHP Version
8.1.29
Notes
No response