Skip to content

Commit cac360b

Browse files
Add project
1 parent 792ea6b commit cac360b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/OpenAI.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ final class OpenAI
1010
/**
1111
* Creates a new Open AI Client with the given API token.
1212
*/
13-
public static function client(string $apiKey, ?string $organization = null): Client
13+
public static function client(string $apiKey, ?string $organization = null, ?string $project = null): Client
1414
{
1515
return self::factory()
1616
->withApiKey($apiKey)
1717
->withOrganization($organization)
18+
->withProject($project)
1819
->withHttpHeader('OpenAI-Beta', 'assistants=v1')
1920
->make();
2021
}

0 commit comments

Comments
 (0)