We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792ea6b commit cac360bCopy full SHA for cac360b
src/OpenAI.php
@@ -10,11 +10,12 @@ final class OpenAI
10
/**
11
* Creates a new Open AI Client with the given API token.
12
*/
13
- public static function client(string $apiKey, ?string $organization = null): Client
+ public static function client(string $apiKey, ?string $organization = null, ?string $project = null): Client
14
{
15
return self::factory()
16
->withApiKey($apiKey)
17
->withOrganization($organization)
18
+ ->withProject($project)
19
->withHttpHeader('OpenAI-Beta', 'assistants=v1')
20
->make();
21
}
0 commit comments