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