@@ -5,13 +5,29 @@ import * as Core from './core';
5
5
import * as Errors from './error' ;
6
6
import * as Uploads from './uploads' ;
7
7
import * as API from './resources/index' ;
8
+ import {
9
+ BatchCreateParams ,
10
+ BatchCreateResponse ,
11
+ BatchListResponse ,
12
+ BatchRetrieveResponse ,
13
+ Batches ,
14
+ } from './resources/batches' ;
8
15
import { CompletionUsage , Completions } from './resources/completions' ;
9
16
import {
10
17
CreateEmbeddingResponse ,
11
18
Embedding ,
12
19
EmbeddingCreateParams ,
13
20
Embeddings ,
14
21
} from './resources/embeddings' ;
22
+ import {
23
+ FileContentResponse ,
24
+ FileCreateParams ,
25
+ FileCreateResponse ,
26
+ FileDeleteResponse ,
27
+ FileInfoResponse ,
28
+ FileListResponse ,
29
+ Files ,
30
+ } from './resources/files' ;
15
31
import { Model , ModelDeleted , ModelListResponse , Models } from './resources/models' ;
16
32
import { Audio } from './resources/audio/audio' ;
17
33
import { Chat } from './resources/chat/chat' ;
@@ -147,6 +163,8 @@ export class Groq extends Core.APIClient {
147
163
embeddings : API . Embeddings = new API . Embeddings ( this ) ;
148
164
audio : API . Audio = new API . Audio ( this ) ;
149
165
models : API . Models = new API . Models ( this ) ;
166
+ batches : API . Batches = new API . Batches ( this ) ;
167
+ files : API . Files = new API . Files ( this ) ;
150
168
151
169
protected override defaultQuery ( ) : Core . DefaultQuery | undefined {
152
170
return this . _options . defaultQuery ;
@@ -189,6 +207,8 @@ Groq.Chat = Chat;
189
207
Groq . Embeddings = Embeddings ;
190
208
Groq . Audio = Audio ;
191
209
Groq . Models = Models ;
210
+ Groq . Batches = Batches ;
211
+ Groq . Files = Files ;
192
212
export declare namespace Groq {
193
213
export type RequestOptions = Core . RequestOptions ;
194
214
@@ -212,6 +232,24 @@ export declare namespace Groq {
212
232
type ModelListResponse as ModelListResponse ,
213
233
} ;
214
234
235
+ export {
236
+ Batches as Batches ,
237
+ type BatchCreateResponse as BatchCreateResponse ,
238
+ type BatchRetrieveResponse as BatchRetrieveResponse ,
239
+ type BatchListResponse as BatchListResponse ,
240
+ type BatchCreateParams as BatchCreateParams ,
241
+ } ;
242
+
243
+ export {
244
+ Files as Files ,
245
+ type FileCreateResponse as FileCreateResponse ,
246
+ type FileListResponse as FileListResponse ,
247
+ type FileDeleteResponse as FileDeleteResponse ,
248
+ type FileContentResponse as FileContentResponse ,
249
+ type FileInfoResponse as FileInfoResponse ,
250
+ type FileCreateParams as FileCreateParams ,
251
+ } ;
252
+
215
253
export type ErrorObject = API . ErrorObject ;
216
254
export type FunctionDefinition = API . FunctionDefinition ;
217
255
export type FunctionParameters = API . FunctionParameters ;
0 commit comments