@@ -42,7 +42,8 @@ public function __construct(
42
42
*/
43
43
public function completions (): Completions
44
44
{
45
- return new Completions ($ this ->transporter , $ this ->events );
45
+ return (new Completions ($ this ->transporter ))
46
+ ->setEventDispatcher ($ this ->events );
46
47
}
47
48
48
49
/**
@@ -52,7 +53,8 @@ public function completions(): Completions
52
53
*/
53
54
public function chat (): Chat
54
55
{
55
- return new Chat ($ this ->transporter , $ this ->events );
56
+ return (new Chat ($ this ->transporter ))
57
+ ->setEventDispatcher ($ this ->events );
56
58
}
57
59
58
60
/**
@@ -62,7 +64,8 @@ public function chat(): Chat
62
64
*/
63
65
public function embeddings (): Embeddings
64
66
{
65
- return new Embeddings ($ this ->transporter , $ this ->events );
67
+ return (new Embeddings ($ this ->transporter ))
68
+ ->setEventDispatcher ($ this ->events );
66
69
}
67
70
68
71
/**
@@ -72,7 +75,8 @@ public function embeddings(): Embeddings
72
75
*/
73
76
public function audio (): Audio
74
77
{
75
- return new Audio ($ this ->transporter , $ this ->events );
78
+ return (new Audio ($ this ->transporter ))
79
+ ->setEventDispatcher ($ this ->events );
76
80
}
77
81
78
82
/**
@@ -82,7 +86,8 @@ public function audio(): Audio
82
86
*/
83
87
public function edits (): Edits
84
88
{
85
- return new Edits ($ this ->transporter , $ this ->events );
89
+ return (new Edits ($ this ->transporter ))
90
+ ->setEventDispatcher ($ this ->events );
86
91
}
87
92
88
93
/**
@@ -92,7 +97,8 @@ public function edits(): Edits
92
97
*/
93
98
public function files (): Files
94
99
{
95
- return new Files ($ this ->transporter , $ this ->events );
100
+ return (new Files ($ this ->transporter ))
101
+ ->setEventDispatcher ($ this ->events );
96
102
}
97
103
98
104
/**
@@ -102,7 +108,8 @@ public function files(): Files
102
108
*/
103
109
public function models (): Models
104
110
{
105
- return new Models ($ this ->transporter , $ this ->events );
111
+ return (new Models ($ this ->transporter ))
112
+ ->setEventDispatcher ($ this ->events );
106
113
}
107
114
108
115
/**
@@ -112,7 +119,8 @@ public function models(): Models
112
119
*/
113
120
public function fineTuning (): FineTuning
114
121
{
115
- return new FineTuning ($ this ->transporter , $ this ->events );
122
+ return (new FineTuning ($ this ->transporter ))
123
+ ->setEventDispatcher ($ this ->events );
116
124
}
117
125
118
126
/**
@@ -124,7 +132,8 @@ public function fineTuning(): FineTuning
124
132
*/
125
133
public function fineTunes (): FineTunes
126
134
{
127
- return new FineTunes ($ this ->transporter , $ this ->events );
135
+ return (new FineTunes ($ this ->transporter ))
136
+ ->setEventDispatcher ($ this ->events );
128
137
}
129
138
130
139
/**
@@ -134,7 +143,8 @@ public function fineTunes(): FineTunes
134
143
*/
135
144
public function moderations (): Moderations
136
145
{
137
- return new Moderations ($ this ->transporter , $ this ->events );
146
+ return (new Moderations ($ this ->transporter ))
147
+ ->setEventDispatcher ($ this ->events );
138
148
}
139
149
140
150
/**
@@ -144,7 +154,8 @@ public function moderations(): Moderations
144
154
*/
145
155
public function images (): Images
146
156
{
147
- return new Images ($ this ->transporter , $ this ->events );
157
+ return (new Images ($ this ->transporter ))
158
+ ->setEventDispatcher ($ this ->events );
148
159
}
149
160
150
161
/**
@@ -154,7 +165,8 @@ public function images(): Images
154
165
*/
155
166
public function assistants (): Assistants
156
167
{
157
- return new Assistants ($ this ->transporter , $ this ->events );
168
+ return (new Assistants ($ this ->transporter ))
169
+ ->setEventDispatcher ($ this ->events );
158
170
}
159
171
160
172
/**
@@ -164,6 +176,7 @@ public function assistants(): Assistants
164
176
*/
165
177
public function threads (): ThreadsContract
166
178
{
167
- return new Threads ($ this ->transporter , $ this ->events );
179
+ return (new Threads ($ this ->transporter ))
180
+ ->setEventDispatcher ($ this ->events );
168
181
}
169
182
}
0 commit comments