Skip to content

Commit

Permalink
Add "withProject" to the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro committed Jun 7, 2024
1 parent 8ad051b commit e9ca288
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ $yourApiKey = getenv('YOUR_API_KEY');
$client = OpenAI::factory()
->withApiKey($yourApiKey)
->withOrganization('your-organization') // default: null
->withProject('Your Project') // default: null
->withBaseUri('openai.example.com/v1') // default: api.openai.com/v1
->withHttpClient($client = new \GuzzleHttp\Client([])) // default: HTTP client found using PSR-18 HTTP Client Discovery
->withHttpHeader('X-My-Header', 'foo')
Expand Down

0 comments on commit e9ca288

Please sign in to comment.