Closed
Description
Description
I'm trying to write a test for a function that calls $client->threads()->runs()->createStreamed();
For other methods we use the ClientFake()
class with the appropriate fake response.
I tried the following
$client = new ClientFake(ThreadRunStreamResponse::fake($expectedStreamResponse));
However this doesn't work because ThreadRunStreamResponse
doesn't use the Fakeable
trait like ThreadMessageResponse
or CreateResponse
.
Is there another Response class I should be using instead or has this response's fake / fixtures not been implemented yet?
Steps To Reproduce
You can test with
$client = new ClientFake(ThreadRunStreamResponse::fake($expectedStreamResponse));
OpenAI PHP Client Version
v0.10.3
PHP Version
8.2.12
Notes
No response