We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to write a test for a function that calls $client->threads()->runs()->createStreamed();
$client->threads()->runs()->createStreamed();
For other methods we use the ClientFake() class with the appropriate fake response.
ClientFake()
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.
ThreadRunStreamResponse
Fakeable
ThreadMessageResponse
CreateResponse
Is there another Response class I should be using instead or has this response's fake / fixtures not been implemented yet?
You can test with
v0.10.3
8.2.12
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
However this doesn't work because
ThreadRunStreamResponse
doesn't use theFakeable
trait likeThreadMessageResponse
orCreateResponse
.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
OpenAI PHP Client Version
v0.10.3
PHP Version
8.2.12
Notes
No response
The text was updated successfully, but these errors were encountered: