File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 13
13
"php" : " ^8.1.0" ,
14
14
"guzzlehttp/guzzle" : " ^7.7.0" ,
15
15
"laravel/framework" : " ^9.46.0|^10.14.1" ,
16
- "openai-php/client" : " ^0.7.8 "
16
+ "openai-php/client" : " dev-add-assistant-api "
17
17
},
18
18
"require-dev" : {
19
19
"laravel/pint" : " ^1.10.3" ,
Original file line number Diff line number Diff line change 10
10
use OpenAI \Responses \StreamResponse ;
11
11
12
12
/**
13
+ * @method static \OpenAI\Resources\Assistants assistants()
13
14
* @method static \OpenAI\Resources\Audio audio()
14
15
* @method static \OpenAI\Resources\Chat chat()
15
16
* @method static \OpenAI\Resources\Completions completions()
20
21
* @method static \OpenAI\Resources\Images images()
21
22
* @method static \OpenAI\Resources\Models models()
22
23
* @method static \OpenAI\Resources\Moderations moderations()
24
+ * @method static \OpenAI\Resources\Threads threads()
23
25
*/
24
26
final class OpenAI extends Facade
25
27
{
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public function register(): void
32
32
return OpenAI::factory ()
33
33
->withApiKey ($ apiKey )
34
34
->withOrganization ($ organization )
35
+ ->withHttpHeader ('OpenAI-Beta ' , 'assistants=v1 ' )
35
36
->withHttpClient (new \GuzzleHttp \Client (['timeout ' => config ('openai.request_timeout ' , 30 )]))
36
37
->make ();
37
38
});
You can’t perform that action at this time.
0 commit comments