Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed May 29, 2024
1 parent 0f3e185 commit 240ade9
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions src/resources/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ export interface FileRetrieveResponse {

filename: string;

FileType: string;
FileType: 'jsonl' | 'parquet';

LineCount: number;

object: string;

Processed: boolean;

purpose: string;
purpose: 'fine-tune';
}

export interface FileListResponse {
Expand All @@ -79,15 +79,15 @@ export namespace FileListResponse {

filename: string;

FileType: string;
FileType: 'jsonl' | 'parquet';

LineCount: number;

object: string;

Processed: boolean;

purpose: string;
purpose: 'fine-tune';
}
}

Expand Down
31 changes: 28 additions & 3 deletions src/resources/fine-tune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand All @@ -214,7 +239,7 @@ export interface FineTuneDownloadResponse {

filename?: string;

object?: string;
object?: unknown;

size?: number;
}
Expand Down
2 changes: 1 addition & 1 deletion src/resources/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface ImageFile {

model: string;

object: string;
object: 'list';
}

export namespace ImageFile {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export namespace ModelListResponse {

object: string;

type: string;
type: 'chat' | 'language' | 'code' | 'image' | 'embedding' | 'moderation';

context_length?: number;

Expand Down

0 comments on commit 240ade9

Please sign in to comment.