Skip to content

Commit dac80cc

Browse files
feat(api): api update
1 parent 5c9c32a commit dac80cc

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 28
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-ce2216bb1eec9b836bb36c4b6a700b824c7e409b9188b6575ea8a3254b49bf25.yml
3-
openapi_spec_hash: 5eb004279bd48b34e32192d83fd92214
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-3d6ba63951e80bd93c271b1803dc529a8e4e8d8872a0f597cabc1551a90c2e44.yml
3+
openapi_spec_hash: 87058bf8524b40e430c14ddbc1a7d94f
44
config_hash: a60b100624e80dc8d9144e7bc306f5ce

src/resources/fine-tune.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ export namespace FineTune {
214214

215215
export interface TrainingMethodSft {
216216
method: 'sft';
217+
218+
/**
219+
* Whether to mask the user messages in conversational data or prompts in
220+
* instruction data.
221+
*/
222+
train_on_inputs: boolean | 'auto';
217223
}
218224

219225
export interface TrainingMethodDpo {
@@ -381,8 +387,8 @@ export interface FineTuneCreateParams {
381387
suffix?: string;
382388

383389
/**
384-
* Whether to mask the user messages in conversational data or prompts in
385-
* instruction data.
390+
* @deprecated Whether to mask the user messages in conversational data or prompts
391+
* in instruction data.
386392
*/
387393
train_on_inputs?: boolean | 'auto';
388394

@@ -466,6 +472,12 @@ export namespace FineTuneCreateParams {
466472

467473
export interface TrainingMethodSft {
468474
method: 'sft';
475+
476+
/**
477+
* Whether to mask the user messages in conversational data or prompts in
478+
* instruction data.
479+
*/
480+
train_on_inputs: boolean | 'auto';
469481
}
470482

471483
export interface TrainingMethodDpo {

tests/api-resources/fine-tune.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('resource fineTune', () => {
3636
n_evals: 0,
3737
suffix: 'suffix',
3838
train_on_inputs: true,
39-
training_method: { method: 'sft' },
39+
training_method: { method: 'sft', train_on_inputs: true },
4040
training_type: { type: 'Full' },
4141
validation_file: 'validation_file',
4242
wandb_api_key: 'wandb_api_key',

0 commit comments

Comments
 (0)