File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ $client = OpenAI::factory()
8484 ->withOrganization('your-organization') // default: null
8585 ->withProject('Your Project') // default: null
8686 ->withBaseUri('openai.example.com/v1') // default: api.openai.com/v1
87- ->withHttpClient($client = new \GuzzleHttp\Client([])) // default: HTTP client found using PSR-18 HTTP Client Discovery
87+ ->withHttpClient($httpClient = new \GuzzleHttp\Client([])) // default: HTTP client found using PSR-18 HTTP Client Discovery
8888 ->withHttpHeader('X-My-Header', 'foo')
8989 ->withQueryParam('my-param', 'bar')
90- ->withStreamHandler(fn (RequestInterface $request): ResponseInterface => $client ->send($request, [
90+ ->withStreamHandler(fn (RequestInterface $request): ResponseInterface => $httpClient ->send($request, [
9191 'stream' => true // Allows to provide a custom stream handler for the http client.
9292 ]))
9393 ->make();
You can’t perform that action at this time.
0 commit comments