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()
84
84
->withOrganization('your-organization') // default: null
85
85
->withProject('Your Project') // default: null
86
86
->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
88
88
->withHttpHeader('X-My-Header', 'foo')
89
89
->withQueryParam('my-param', 'bar')
90
- ->withStreamHandler(fn (RequestInterface $request): ResponseInterface => $client ->send($request, [
90
+ ->withStreamHandler(fn (RequestInterface $request): ResponseInterface => $httpClient ->send($request, [
91
91
'stream' => true // Allows to provide a custom stream handler for the http client.
92
92
]))
93
93
->make();
You can’t perform that action at this time.
0 commit comments