Skip to content

Commit 240ade9

Browse files
feat(api): OpenAPI spec update via Stainless API (#10)
1 parent 0f3e185 commit 240ade9

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 15
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-ab60dcafb04015e34b38c2991f76f78f35eeb0860fe02ee4033c4161c297b3bc.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-6e975518a2563fdb57394133f1ed9dfe426a2cf5d2fef793fd139627c93df4aa.yml

src/resources/files.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ export interface FileRetrieveResponse {
5454

5555
filename: string;
5656

57-
FileType: string;
57+
FileType: 'jsonl' | 'parquet';
5858

5959
LineCount: number;
6060

6161
object: string;
6262

6363
Processed: boolean;
6464

65-
purpose: string;
65+
purpose: 'fine-tune';
6666
}
6767

6868
export interface FileListResponse {
@@ -79,15 +79,15 @@ export namespace FileListResponse {
7979

8080
filename: string;
8181

82-
FileType: string;
82+
FileType: 'jsonl' | 'parquet';
8383

8484
LineCount: number;
8585

8686
object: string;
8787

8888
Processed: boolean;
8989

90-
purpose: string;
90+
purpose: 'fine-tune';
9191
}
9292
}
9393

src/resources/fine-tune.ts

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,36 @@ export namespace FineTuneEvent {
195195

196196
training_offset: number;
197197

198-
type: string;
198+
type:
199+
| 'job_pending'
200+
| 'job_start'
201+
| 'job_stopped'
202+
| 'model_downloading'
203+
| 'model_download_complete'
204+
| 'training_data_downloading'
205+
| 'training_data_download_complete'
206+
| 'validation_data_downloading'
207+
| 'validation_data_download_complete'
208+
| 'wandb_init'
209+
| 'training_start'
210+
| 'checkpoint_save'
211+
| 'billing_limit'
212+
| 'epoch_complete'
213+
| 'training_complete'
214+
| 'model_compressing'
215+
| 'model_compression_complete'
216+
| 'model_uploading'
217+
| 'model_upload_complete'
218+
| 'job_complete'
219+
| 'job_error'
220+
| 'cancel_requested'
221+
| 'job_restarted'
222+
| 'refund'
223+
| 'warning';
199224

200225
wandb_url: string;
201226

202-
level?: string;
227+
level?: unknown;
203228
}
204229
}
205230

@@ -214,7 +239,7 @@ export interface FineTuneDownloadResponse {
214239

215240
filename?: string;
216241

217-
object?: string;
242+
object?: unknown;
218243

219244
size?: number;
220245
}

src/resources/images.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface ImageFile {
2020

2121
model: string;
2222

23-
object: string;
23+
object: 'list';
2424
}
2525

2626
export namespace ImageFile {

src/resources/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export namespace ModelListResponse {
2323

2424
object: string;
2525

26-
type: string;
26+
type: 'chat' | 'language' | 'code' | 'image' | 'embedding' | 'moderation';
2727

2828
context_length?: number;
2929

0 commit comments

Comments
 (0)