Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.34.0"
".": "0.35.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 45
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-817bdc0e9a5082575f07386056968f56af20cbc40cbbc716ab4b8c4ec9220b53.yml
openapi_spec_hash: 30b3f6d251dfd02bca8ffa3f755e7574
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-9deb17c2e61bacac1bf17741853c4e5e11059b85fc37538c284d36ce9973836f.yml
openapi_spec_hash: 2f3c2fb0f8a06225670b05fc19a60c23
config_hash: 9749f2f8998aa6b15452b2187ff675b9
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.35.0 (2025-12-23)

Full Changelog: [v0.34.0...v0.35.0](https://github.com/togethercomputer/together-typescript/compare/v0.34.0...v0.35.0)

### Features

* Support VLM finetuning ([4a0271f](https://github.com/togethercomputer/together-typescript/commit/4a0271f78cecc05e137c6977238917fdf2bae381))


### Documentation

* add more examples ([99b172f](https://github.com/togethercomputer/together-typescript/commit/99b172f6c74ed1fd50342b22da4494e200a4a5fc))

## 0.34.0 (2025-12-16)

Full Changelog: [v0.33.0...v0.34.0](https://github.com/togethercomputer/together-typescript/compare/v0.33.0...v0.34.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import Together from 'together-ai';
const client = new Together();

const stream = await client.chat.completions.create({
messages: [{ role: 'user', content: 'Say this is a test' }],
messages: [{ role: 'user', content: 'Say this is a test!' }],
model: 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo',
stream: true,
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "together-ai",
"version": "0.34.0",
"version": "0.35.0",
"description": "The official TypeScript library for the Together API",
"author": "Together <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
30 changes: 30 additions & 0 deletions src/resources/fine-tuning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ export interface FinetuneResponse {

model_output_path?: string;

multimodal_params?: FinetuneResponse.MultimodalParams;

n_checkpoints?: number;

n_epochs?: number;
Expand Down Expand Up @@ -319,6 +321,14 @@ export namespace FinetuneResponse {
}
}

export interface MultimodalParams {
/**
* Whether to train the vision encoder of the model. Only available for multimodal
* models.
*/
train_vision?: boolean;
}

/**
* Progress information for a fine-tuning job
*/
Expand Down Expand Up @@ -1255,6 +1265,8 @@ export interface FineTuningCreateParams {
*/
max_grad_norm?: number;

multimodal_params?: FineTuningCreateParams.MultimodalParams;

/**
* Number of intermediate model versions saved during training for evaluation
*/
Expand Down Expand Up @@ -1360,6 +1372,14 @@ export namespace FineTuningCreateParams {
}
}

export interface MultimodalParams {
/**
* Whether to train the vision encoder of the model. Only available for multimodal
* models.
*/
train_vision?: boolean;
}

export interface TrainingMethodSft {
method: 'sft';

Expand Down Expand Up @@ -1443,6 +1463,8 @@ export interface FineTuningEstimatePriceParams {
*/
model?: string;

multimodal_params?: FineTuningEstimatePriceParams.MultimodalParams;

/**
* Number of complete passes through the training dataset (higher values may
* improve results but increase cost and risk of overfitting)
Expand Down Expand Up @@ -1473,6 +1495,14 @@ export interface FineTuningEstimatePriceParams {
}

export namespace FineTuningEstimatePriceParams {
export interface MultimodalParams {
/**
* Whether to train the vision encoder of the model. Only available for multimodal
* models.
*/
train_vision?: boolean;
}

export interface TrainingMethodSft {
method: 'sft';

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.34.0'; // x-release-please-version
export const VERSION = '0.35.0'; // x-release-please-version
2 changes: 2 additions & 0 deletions tests/api-resources/fine-tuning.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ describe('resource fineTuning', () => {
learning_rate: 0,
lr_scheduler: { lr_scheduler_type: 'linear', lr_scheduler_args: { min_lr_ratio: 0 } },
max_grad_norm: 0,
multimodal_params: { train_vision: true },
n_checkpoints: 0,
n_epochs: 0,
n_evals: 0,
Expand Down Expand Up @@ -124,6 +125,7 @@ describe('resource fineTuning', () => {
training_file: 'training_file',
from_checkpoint: 'from_checkpoint',
model: 'model',
multimodal_params: { train_vision: true },
n_epochs: 0,
n_evals: 0,
training_method: { method: 'sft', train_on_inputs: true },
Expand Down