diff --git a/.stats.yml b/.stats.yml index e24c8b6..d332e90 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 15 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-ab60dcafb04015e34b38c2991f76f78f35eeb0860fe02ee4033c4161c297b3bc.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-6e975518a2563fdb57394133f1ed9dfe426a2cf5d2fef793fd139627c93df4aa.yml diff --git a/src/resources/files.ts b/src/resources/files.ts index e7bfd08..3dee75f 100644 --- a/src/resources/files.ts +++ b/src/resources/files.ts @@ -54,7 +54,7 @@ export interface FileRetrieveResponse { filename: string; - FileType: string; + FileType: 'jsonl' | 'parquet'; LineCount: number; @@ -62,7 +62,7 @@ export interface FileRetrieveResponse { Processed: boolean; - purpose: string; + purpose: 'fine-tune'; } export interface FileListResponse { @@ -79,7 +79,7 @@ export namespace FileListResponse { filename: string; - FileType: string; + FileType: 'jsonl' | 'parquet'; LineCount: number; @@ -87,7 +87,7 @@ export namespace FileListResponse { Processed: boolean; - purpose: string; + purpose: 'fine-tune'; } } diff --git a/src/resources/fine-tune.ts b/src/resources/fine-tune.ts index aefabf3..2c205d0 100644 --- a/src/resources/fine-tune.ts +++ b/src/resources/fine-tune.ts @@ -195,11 +195,36 @@ export namespace FineTuneEvent { training_offset: number; - type: string; + type: + | 'job_pending' + | 'job_start' + | 'job_stopped' + | 'model_downloading' + | 'model_download_complete' + | 'training_data_downloading' + | 'training_data_download_complete' + | 'validation_data_downloading' + | 'validation_data_download_complete' + | 'wandb_init' + | 'training_start' + | 'checkpoint_save' + | 'billing_limit' + | 'epoch_complete' + | 'training_complete' + | 'model_compressing' + | 'model_compression_complete' + | 'model_uploading' + | 'model_upload_complete' + | 'job_complete' + | 'job_error' + | 'cancel_requested' + | 'job_restarted' + | 'refund' + | 'warning'; wandb_url: string; - level?: string; + level?: unknown; } } @@ -214,7 +239,7 @@ export interface FineTuneDownloadResponse { filename?: string; - object?: string; + object?: unknown; size?: number; } diff --git a/src/resources/images.ts b/src/resources/images.ts index 2ac4fe7..18adbfe 100644 --- a/src/resources/images.ts +++ b/src/resources/images.ts @@ -20,7 +20,7 @@ export interface ImageFile { model: string; - object: string; + object: 'list'; } export namespace ImageFile { diff --git a/src/resources/models.ts b/src/resources/models.ts index 4c8e5be..cc91919 100644 --- a/src/resources/models.ts +++ b/src/resources/models.ts @@ -23,7 +23,7 @@ export namespace ModelListResponse { object: string; - type: string; + type: 'chat' | 'language' | 'code' | 'image' | 'embedding' | 'moderation'; context_length?: number;