From d1caf1cb6f030a67980ec7c5569fcf521745f191 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 17:22:34 +0000 Subject: [PATCH 01/10] fix(types): update driver_versions structure, require supported_instance_types in cluster regions --- .stats.yml | 4 ++-- src/resources/beta/clusters/clusters.ts | 25 ++++++++++++++++++++++--- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index d48788cb..5f9d6101 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 75 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-76f8801298719cc87e9dc4c64b321bcfd432416d76488499d340b4bb6bf81b9b.yml -openapi_spec_hash: ce0b83ef0a5f174461bd7d13a379b636 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-710705165d026d37247d5b0961e02c2f5f97c0c6228b34df066099c2f5833e36.yml +openapi_spec_hash: 3f0274312be51d9a1ca6fb1f184585f5 config_hash: 52d213100a0ca1a4b2cdcd2718936b51 diff --git a/src/resources/beta/clusters/clusters.ts b/src/resources/beta/clusters/clusters.ts index b17c8571..bcfa652e 100644 --- a/src/resources/beta/clusters/clusters.ts +++ b/src/resources/beta/clusters/clusters.ts @@ -170,9 +170,10 @@ export interface ClusterListRegionsResponse { export namespace ClusterListRegionsResponse { export interface Region { /** - * List of supported identifiable driver versions available in the region. + * List of supported identifiable cuda/nvidia driver versions pairs available in + * the region. */ - driver_versions: Array; + driver_versions: Array; /** * Identifiable name of the region. @@ -182,7 +183,25 @@ export namespace ClusterListRegionsResponse { /** * List of supported identifiable gpus available in the region. */ - supported_instance_types?: Array; + supported_instance_types: Array; + } + + export namespace Region { + /** + * CUDA/NVIDIA driver versions pair available in the region to use in the create + * cluster request. + */ + export interface DriverVersion { + /** + * CUDA driver version. + */ + cuda_driver_version: string; + + /** + * NVIDIA driver version. + */ + nvidia_driver_version: string; + } } } From 4ba1386fb9a20d7cd2a33c07c5e2fbb42e80d9fe Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 15:58:03 +0000 Subject: [PATCH 02/10] chore(internal): codegen related update --- src/internal/utils/env.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/utils/env.ts b/src/internal/utils/env.ts index 2d848007..cc5fa0fa 100644 --- a/src/internal/utils/env.ts +++ b/src/internal/utils/env.ts @@ -9,10 +9,10 @@ */ export const readEnv = (env: string): string | undefined => { if (typeof (globalThis as any).process !== 'undefined') { - return (globalThis as any).process.env?.[env]?.trim() ?? undefined; + return (globalThis as any).process.env?.[env]?.trim() || undefined; } if (typeof (globalThis as any).Deno !== 'undefined') { - return (globalThis as any).Deno.env?.get?.(env)?.trim(); + return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined; } return undefined; }; From 93137622f3c3fe9158c5692a69a7a191aee27d45 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 8 Apr 2026 17:08:44 +0000 Subject: [PATCH 03/10] feat(api): accept string URLs for audio_inputs and source_video in videos --- .stats.yml | 4 ++-- src/resources/videos.ts | 16 +++++++--------- tests/api-resources/videos.test.ts | 4 ++-- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5f9d6101..e1578018 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 75 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-710705165d026d37247d5b0961e02c2f5f97c0c6228b34df066099c2f5833e36.yml -openapi_spec_hash: 3f0274312be51d9a1ca6fb1f184585f5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-ae90e8ffd006dc8bb4042f4a0202da75eb075f612e174c9ca09963c69af922af.yml +openapi_spec_hash: 8950533a7b7e99f997d66f8dfc5e8a8b config_hash: 52d213100a0ca1a4b2cdcd2718936b51 diff --git a/src/resources/videos.ts b/src/resources/videos.ts index e6798803..0122bc48 100644 --- a/src/resources/videos.ts +++ b/src/resources/videos.ts @@ -241,9 +241,10 @@ export namespace VideoCreateParams { */ export interface Media { /** - * Array of audio inputs. + * Array of audio inputs. Each element accepts a URL string or an object with an + * "audio" key. */ - audio_inputs?: Array; + audio_inputs?: Array; /** * Array of images to guide video generation at specific timeline positions. @@ -266,13 +267,13 @@ export namespace VideoCreateParams { reference_videos?: Array; /** - * Source video to edit. + * Source video to edit. Accepts a URL string or an object with a "video" key. */ - source_video?: Media.SourceVideo; + source_video?: string | Media.VideoRef; } export namespace Media { - export interface AudioInput { + export interface AudioRef { /** * URL of the audio. */ @@ -310,10 +311,7 @@ export namespace VideoCreateParams { video: string; } - /** - * Source video to edit. - */ - export interface SourceVideo { + export interface VideoRef { /** * URL of the video. */ diff --git a/tests/api-resources/videos.test.ts b/tests/api-resources/videos.test.ts index 3b2722a1..505959fa 100644 --- a/tests/api-resources/videos.test.ts +++ b/tests/api-resources/videos.test.ts @@ -28,12 +28,12 @@ describe('resource videos', () => { guidance_scale: 0, height: 0, media: { - audio_inputs: [{ audio: 'audio' }], + audio_inputs: ['string'], frame_images: [{ input_image: 'input_image', frame: 0 }], frame_videos: [{ video: 'video' }], reference_images: ['string'], reference_videos: [{ video: 'video' }], - source_video: { video: 'video' }, + source_video: 'string', }, negative_prompt: 'negative_prompt', output_format: 'MP4', From c61a7c1cc7eafa0913d853e993992961cc38ebaf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 17:16:38 +0000 Subject: [PATCH 04/10] feat(api): add num_workers parameter to evals model/judge requests --- .stats.yml | 2 +- src/resources/evals.ts | 49 +++++++++++++++++++++++++++++++ tests/api-resources/evals.test.ts | 1 + 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index e1578018..53d774fd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 75 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-ae90e8ffd006dc8bb4042f4a0202da75eb075f612e174c9ca09963c69af922af.yml -openapi_spec_hash: 8950533a7b7e99f997d66f8dfc5e8a8b +openapi_spec_hash: 46f46bf33054db3cdd5977f525ebc060 config_hash: 52d213100a0ca1a4b2cdcd2718936b51 diff --git a/src/resources/evals.ts b/src/resources/evals.ts index b2b24ac2..31b45d27 100644 --- a/src/resources/evals.ts +++ b/src/resources/evals.ts @@ -459,6 +459,13 @@ export namespace EvalCreateParams { * Base URL for external judge models. Must be OpenAI-compatible base URL. */ external_base_url?: string; + + /** + * Number of concurrent workers for inference requests. Overrides the default + * concurrency for this model. Useful for tuning throughput when using proxy + * endpoints (e.g. OpenRouter) or rate-limited external APIs. + */ + num_workers?: number; } export interface EvaluationModelRequest { @@ -501,6 +508,13 @@ export namespace EvalCreateParams { * Base URL for external models. Must be OpenAI-compatible base URL */ external_base_url?: string; + + /** + * Number of concurrent workers for inference requests. Overrides the default + * concurrency for this model. Useful for tuning throughput when using proxy + * endpoints (e.g. OpenRouter) or rate-limited external APIs. + */ + num_workers?: number; } } @@ -559,6 +573,13 @@ export namespace EvalCreateParams { * Base URL for external judge models. Must be OpenAI-compatible base URL. */ external_base_url?: string; + + /** + * Number of concurrent workers for inference requests. Overrides the default + * concurrency for this model. Useful for tuning throughput when using proxy + * endpoints (e.g. OpenRouter) or rate-limited external APIs. + */ + num_workers?: number; } export interface EvaluationModelRequest { @@ -601,6 +622,13 @@ export namespace EvalCreateParams { * Base URL for external models. Must be OpenAI-compatible base URL */ external_base_url?: string; + + /** + * Number of concurrent workers for inference requests. Overrides the default + * concurrency for this model. Useful for tuning throughput when using proxy + * endpoints (e.g. OpenRouter) or rate-limited external APIs. + */ + num_workers?: number; } } @@ -649,6 +677,13 @@ export namespace EvalCreateParams { * Base URL for external judge models. Must be OpenAI-compatible base URL. */ external_base_url?: string; + + /** + * Number of concurrent workers for inference requests. Overrides the default + * concurrency for this model. Useful for tuning throughput when using proxy + * endpoints (e.g. OpenRouter) or rate-limited external APIs. + */ + num_workers?: number; } export interface EvaluationModelRequest { @@ -691,6 +726,13 @@ export namespace EvalCreateParams { * Base URL for external models. Must be OpenAI-compatible base URL */ external_base_url?: string; + + /** + * Number of concurrent workers for inference requests. Overrides the default + * concurrency for this model. Useful for tuning throughput when using proxy + * endpoints (e.g. OpenRouter) or rate-limited external APIs. + */ + num_workers?: number; } export interface EvaluationModelRequest { @@ -733,6 +775,13 @@ export namespace EvalCreateParams { * Base URL for external models. Must be OpenAI-compatible base URL */ external_base_url?: string; + + /** + * Number of concurrent workers for inference requests. Overrides the default + * concurrency for this model. Useful for tuning throughput when using proxy + * endpoints (e.g. OpenRouter) or rate-limited external APIs. + */ + num_workers?: number; } } } diff --git a/tests/api-resources/evals.test.ts b/tests/api-resources/evals.test.ts index 932f00bd..a3182ad9 100644 --- a/tests/api-resources/evals.test.ts +++ b/tests/api-resources/evals.test.ts @@ -41,6 +41,7 @@ describe('resource evals', () => { system_template: 'Imagine you are a helpful assistant', external_api_token: 'external_api_token', external_base_url: 'external_base_url', + num_workers: 5, }, labels: ['yes', 'no'], pass_labels: ['yes'], From bdf968a7f48622f0865040dd8f9b81d029ce8e3e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 18:15:21 +0000 Subject: [PATCH 05/10] docs: improve examples --- tests/api-resources/fine-tuning.test.ts | 8 ++++---- tests/api-resources/videos.test.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/api-resources/fine-tuning.test.ts b/tests/api-resources/fine-tuning.test.ts index 263ab6e7..b9cf15d1 100644 --- a/tests/api-resources/fine-tuning.test.ts +++ b/tests/api-resources/fine-tuning.test.ts @@ -23,7 +23,7 @@ describe('resource fineTuning', () => { const response = await client.fineTuning.create({ model: 'model', training_file: 'training_file', - batch_size: 0, + batch_size: 'max', from_checkpoint: 'from_checkpoint', from_hf_model: 'from_hf_model', hf_api_token: 'hf_api_token', @@ -42,8 +42,8 @@ describe('resource fineTuning', () => { packing: true, random_seed: 0, suffix: 'suffix', - train_on_inputs: true, - training_method: { method: 'sft', train_on_inputs: true }, + train_on_inputs: 'auto', + training_method: { method: 'sft', train_on_inputs: 'auto' }, training_type: { type: 'Full' }, validation_file: 'validation_file', wandb_api_key: 'wandb_api_key', @@ -133,7 +133,7 @@ describe('resource fineTuning', () => { model: 'model', n_epochs: 0, n_evals: 0, - training_method: { method: 'sft', train_on_inputs: true }, + training_method: { method: 'sft', train_on_inputs: 'auto' }, training_type: { type: 'Full' }, validation_file: 'validation_file', }); diff --git a/tests/api-resources/videos.test.ts b/tests/api-resources/videos.test.ts index 505959fa..25fee765 100644 --- a/tests/api-resources/videos.test.ts +++ b/tests/api-resources/videos.test.ts @@ -23,13 +23,13 @@ describe('resource videos', () => { const response = await client.videos.create({ model: 'model', fps: 0, - frame_images: [{ input_image: 'input_image', frame: 0 }], + frame_images: [{ input_image: 'input_image', frame: 'first' }], generate_audio: true, guidance_scale: 0, height: 0, media: { audio_inputs: ['string'], - frame_images: [{ input_image: 'input_image', frame: 0 }], + frame_images: [{ input_image: 'input_image', frame: 'first' }], frame_videos: [{ video: 'video' }], reference_images: ['string'], reference_videos: [{ video: 'video' }], From b1a7c876758cda68e3b48283ff492a85b00dfd1a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 20:00:10 +0000 Subject: [PATCH 06/10] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 53d774fd..cf17d99b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 75 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-ae90e8ffd006dc8bb4042f4a0202da75eb075f612e174c9ca09963c69af922af.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-dfd0516fbf16a7dbb1a1f316e04d79062f36bccb5eadd3b7590b58678bfefdf0.yml openapi_spec_hash: 46f46bf33054db3cdd5977f525ebc060 config_hash: 52d213100a0ca1a4b2cdcd2718936b51 From f9b079e57f54ed0f4e0d4671d298efef8543874d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 12 Apr 2026 19:31:10 +0000 Subject: [PATCH 07/10] chore(internal): codegen related update --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 067f62e7..8d0490f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1244,9 +1244,9 @@ bindings@~1.2.1: integrity sha512-u4cBQNepWxYA55FunZSM7wMi55yQaN0otnhhilNoWHq0MfOfJeQx0v0mRRpolGOExPjZcl6FtB0BB8Xkb88F0g== brace-expansion@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.3.tgz#0493338bdd58e319b1039c67cf7ee439892c01d9" - integrity sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA== + version "2.1.0" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.1.0.tgz#4f41a41190216ee36067ec381526fe9539c4f0ae" + integrity sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w== dependencies: balanced-match "^1.0.0" From 881242f30f5436353c4c977d4a205df35aedb9d1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 15:29:59 +0000 Subject: [PATCH 08/10] feat(api): add cuda/nvidia driver fields, auto-scaling, OIDC, scheduled capacity to clusters --- .stats.yml | 4 +- src/resources/beta/clusters/clusters.ts | 94 +++++++++++++++++-- .../beta/clusters/clusters.test.ts | 15 ++- 3 files changed, 103 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index cf17d99b..c033828b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 75 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-dfd0516fbf16a7dbb1a1f316e04d79062f36bccb5eadd3b7590b58678bfefdf0.yml -openapi_spec_hash: 46f46bf33054db3cdd5977f525ebc060 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-ad32e352db148fccd5cd07388404fcd1d11058476a63c2906ed4e95541c4d9a4.yml +openapi_spec_hash: f610907d7cc91cb4f345eb95d6388e4a config_hash: 52d213100a0ca1a4b2cdcd2718936b51 diff --git a/src/resources/beta/clusters/clusters.ts b/src/resources/beta/clusters/clusters.ts index bcfa652e..b8004d73 100644 --- a/src/resources/beta/clusters/clusters.ts +++ b/src/resources/beta/clusters/clusters.ts @@ -76,9 +76,7 @@ export interface Cluster { control_plane_nodes: Array; - driver_version: 'CUDA_12_5_555' | 'CUDA_12_6_560' | 'CUDA_12_6_565' | 'CUDA_12_8_570'; - - duration_hours: number; + cuda_version: string; gpu_type: 'H100_SXM' | 'H200_SXM' | 'RTX_6000_PCI' | 'L40_PCIE' | 'B200_SXM' | 'H100_SXM_INF'; @@ -88,6 +86,8 @@ export interface Cluster { num_gpus: number; + nvidia_driver_version: string; + region: string; /** @@ -107,6 +107,20 @@ export interface Cluster { | 'Deleting'; volumes: Array; + + capacity_pool_id?: string; + + created_at?: string; + + duration_hours?: number; + + install_traefik?: boolean; + + reservation_end_time?: string; + + reservation_start_time?: string; + + slurm_shm_size_gib?: number; } export namespace Cluster { @@ -142,6 +156,8 @@ export namespace Cluster { num_gpus: number; status: string; + + instance_id?: string; } export interface Volume { @@ -211,7 +227,7 @@ export interface ClusterCreateParams { * reservation via the duration_days field. ON_DEMAND billing types will give you * ownership of the cluster until you delete it. */ - billing_type: 'RESERVED' | 'ON_DEMAND'; + billing_type: 'RESERVED' | 'ON_DEMAND' | 'SCHEDULED_CAPACITY'; /** * Name of the GPU cluster. @@ -219,9 +235,9 @@ export interface ClusterCreateParams { cluster_name: string; /** - * NVIDIA driver version to use in the cluster. + * CUDA version for this cluster. For example, 12.5 */ - driver_version: 'CUDA_12_5_555' | 'CUDA_12_6_560' | 'CUDA_12_6_565' | 'CUDA_12_8_570'; + cuda_version: string; /** * Type of GPU to use in the cluster @@ -234,12 +250,36 @@ export interface ClusterCreateParams { */ num_gpus: number; + /** + * Nvidia driver version for this cluster. For example, 550. Only some combination + * of cuda_version and nvidia_driver_version are supported. + */ + nvidia_driver_version: string; + /** * Region to create the GPU cluster in. Usable regions can be found from * `client.clusters.list_regions()` */ region: string; + /** + * Maximum number of GPUs to which the cluster can be auto-scaled up. This field is + * required if auto_scaled is true. + */ + auto_scale_max_gpus?: number; + + /** + * Whether GPU cluster should be auto-scaled based on the workload. By default, it + * is not auto-scaled. + */ + auto_scaled?: boolean; + + /** + * ID of the capacity pool to use for the cluster. This field is optional and only + * applicable if the cluster is created from a capacity pool. + */ + capacity_pool_id?: string; + /** * Type of cluster to create. */ @@ -250,11 +290,47 @@ export interface ClusterCreateParams { */ duration_days?: number; + /** + * Whether automated GPU node failover should be enabled for this cluster. By + * default, it is disabled. + */ + gpu_node_failover_enabled?: boolean; + + /** + * Whether to install Traefik ingress controller in the cluster. This field is only + * applicable for Kubernetes clusters and is false by default. + */ + install_traefik?: boolean; + + /** + * Reservation end time of the cluster. This field is required for SCHEDULED + * billing to specify the reservation end time for the cluster. + */ + reservation_end_time?: string; + + /** + * Reservation start time of the cluster. This field is required for SCHEDULED + * billing to specify the reservation start time for the cluster. If not provided, + * the cluster will be provisioned immediately. + */ + reservation_start_time?: string; + /** * Inline configuration to create a shared volume with the cluster creation. */ shared_volume?: ClusterCreateParams.SharedVolume; + /** + * Custom Slurm image for Slurm clusters. + */ + slurm_image?: string; + + /** + * Shared memory size in GiB for Slurm cluster. This field is required if + * cluster_type is SLURM. + */ + slurm_shm_size_gib?: number; + /** * ID of an existing volume to use with the cluster creation. */ @@ -294,6 +370,12 @@ export interface ClusterUpdateParams { * example, 8, 16 or 24 */ num_gpus?: number; + + /** + * Timestamp at which the cluster should be decommissioned. Only accepted for + * prepaid clusters. + */ + reservation_end_time?: string; } Clusters.Storage = Storage; diff --git a/tests/api-resources/beta/clusters/clusters.test.ts b/tests/api-resources/beta/clusters/clusters.test.ts index 0d036693..8bd1bf1a 100644 --- a/tests/api-resources/beta/clusters/clusters.test.ts +++ b/tests/api-resources/beta/clusters/clusters.test.ts @@ -12,9 +12,10 @@ describe('resource clusters', () => { const responsePromise = client.beta.clusters.create({ billing_type: 'RESERVED', cluster_name: 'cluster_name', - driver_version: 'CUDA_12_5_555', + cuda_version: 'cuda_version', gpu_type: 'H100_SXM', num_gpus: 0, + nvidia_driver_version: 'nvidia_driver_version', region: 'region', }); const rawResponse = await responsePromise.asResponse(); @@ -30,17 +31,27 @@ describe('resource clusters', () => { const response = await client.beta.clusters.create({ billing_type: 'RESERVED', cluster_name: 'cluster_name', - driver_version: 'CUDA_12_5_555', + cuda_version: 'cuda_version', gpu_type: 'H100_SXM', num_gpus: 0, + nvidia_driver_version: 'nvidia_driver_version', region: 'region', + auto_scale_max_gpus: 0, + auto_scaled: true, + capacity_pool_id: 'capacity_pool_id', cluster_type: 'KUBERNETES', duration_days: 0, + gpu_node_failover_enabled: true, + install_traefik: true, + reservation_end_time: '2019-12-27T18:11:19.117Z', + reservation_start_time: '2019-12-27T18:11:19.117Z', shared_volume: { region: 'region', size_tib: 0, volume_name: 'volume_name', }, + slurm_image: 'slurm_image', + slurm_shm_size_gib: 0, volume_id: 'volume_id', }); }); From e83d0c40631b352675cc6bc1149e86cfd9dbbcdd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 16:02:26 +0000 Subject: [PATCH 09/10] fix(types): rename cuda_driver_version to cuda_version in clusters --- .stats.yml | 4 ++-- src/resources/beta/clusters/clusters.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index c033828b..0c3e9f22 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 75 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-ad32e352db148fccd5cd07388404fcd1d11058476a63c2906ed4e95541c4d9a4.yml -openapi_spec_hash: f610907d7cc91cb4f345eb95d6388e4a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-a49c3cc894ca8f25b07985c98bf7999c44ec4005a4f70d21f21a05cd20b4f017.yml +openapi_spec_hash: 2ef0cbb70708d94bff220a17bce88eca config_hash: 52d213100a0ca1a4b2cdcd2718936b51 diff --git a/src/resources/beta/clusters/clusters.ts b/src/resources/beta/clusters/clusters.ts index b8004d73..7b3bf828 100644 --- a/src/resources/beta/clusters/clusters.ts +++ b/src/resources/beta/clusters/clusters.ts @@ -211,7 +211,7 @@ export namespace ClusterListRegionsResponse { /** * CUDA driver version. */ - cuda_driver_version: string; + cuda_version: string; /** * NVIDIA driver version. From c59f72866b57b85e09168bca2eafc76584369eab Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 16:02:54 +0000 Subject: [PATCH 10/10] release: 0.40.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 27 +++++++++++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 418b49e9..65078153 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.39.0" + ".": "0.40.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bac589a..e0dc2181 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## 0.40.0 (2026-04-13) + +Full Changelog: [v0.39.0...v0.40.0](https://github.com/togethercomputer/together-typescript/compare/v0.39.0...v0.40.0) + +### Features + +* **api:** accept string URLs for audio_inputs and source_video in videos ([9313762](https://github.com/togethercomputer/together-typescript/commit/93137622f3c3fe9158c5692a69a7a191aee27d45)) +* **api:** add cuda/nvidia driver fields, auto-scaling, OIDC, scheduled capacity to clusters ([881242f](https://github.com/togethercomputer/together-typescript/commit/881242f30f5436353c4c977d4a205df35aedb9d1)) +* **api:** add num_workers parameter to evals model/judge requests ([c61a7c1](https://github.com/togethercomputer/together-typescript/commit/c61a7c1cc7eafa0913d853e993992961cc38ebaf)) + + +### Bug Fixes + +* **types:** rename cuda_driver_version to cuda_version in clusters ([e83d0c4](https://github.com/togethercomputer/together-typescript/commit/e83d0c40631b352675cc6bc1149e86cfd9dbbcdd)) +* **types:** update driver_versions structure, require supported_instance_types in cluster regions ([d1caf1c](https://github.com/togethercomputer/together-typescript/commit/d1caf1cb6f030a67980ec7c5569fcf521745f191)) + + +### Chores + +* **internal:** codegen related update ([f9b079e](https://github.com/togethercomputer/together-typescript/commit/f9b079e57f54ed0f4e0d4671d298efef8543874d)) +* **internal:** codegen related update ([4ba1386](https://github.com/togethercomputer/together-typescript/commit/4ba1386fb9a20d7cd2a33c07c5e2fbb42e80d9fe)) + + +### Documentation + +* improve examples ([bdf968a](https://github.com/togethercomputer/together-typescript/commit/bdf968a7f48622f0865040dd8f9b81d029ce8e3e)) + ## 0.39.0 (2026-04-03) Full Changelog: [v0.38.0...v0.39.0](https://github.com/togethercomputer/together-typescript/compare/v0.38.0...v0.39.0) diff --git a/package.json b/package.json index f0397e30..0ea81b98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "together-ai", - "version": "0.39.0", + "version": "0.40.0", "description": "The official TypeScript library for the Together API", "author": "Together ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 5f972a92..c17cceec 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.39.0'; // x-release-please-version +export const VERSION = '0.40.0'; // x-release-please-version