Skip to content

Commit 5495529

Browse files
stainless-app[bot]RobertCraigie
authored andcommitted
chore(docs): add missing deprecation warnings
1 parent c44ed98 commit 5495529

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/resources/chat/completions/completions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ export interface ChatCompletionCreateParamsBase {
11531153
frequency_penalty?: number | null;
11541154

11551155
/**
1156-
* Deprecated in favor of `tool_choice`.
1156+
* @deprecated Deprecated in favor of `tool_choice`.
11571157
*
11581158
* Controls which (if any) function is called by the model.
11591159
*
@@ -1171,7 +1171,7 @@ export interface ChatCompletionCreateParamsBase {
11711171
function_call?: 'none' | 'auto' | ChatCompletionFunctionCallOption;
11721172

11731173
/**
1174-
* Deprecated in favor of `tools`.
1174+
* @deprecated Deprecated in favor of `tools`.
11751175
*
11761176
* A list of functions the model may generate JSON inputs for.
11771177
*/
@@ -1204,8 +1204,8 @@ export interface ChatCompletionCreateParamsBase {
12041204
max_completion_tokens?: number | null;
12051205

12061206
/**
1207-
* The maximum number of [tokens](/tokenizer) that can be generated in the chat
1208-
* completion. This value can be used to control
1207+
* @deprecated The maximum number of [tokens](/tokenizer) that can be generated in
1208+
* the chat completion. This value can be used to control
12091209
* [costs](https://openai.com/api/pricing/) for text generated via API.
12101210
*
12111211
* This value is now deprecated in favor of `max_completion_tokens`, and is not

src/resources/fine-tuning/jobs/jobs.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,9 @@ export interface JobCreateParams {
459459
training_file: string;
460460

461461
/**
462-
* The hyperparameters used for the fine-tuning job. This value is now deprecated
463-
* in favor of `method`, and should be passed in under the `method` parameter.
462+
* @deprecated The hyperparameters used for the fine-tuning job. This value is now
463+
* deprecated in favor of `method`, and should be passed in under the `method`
464+
* parameter.
464465
*/
465466
hyperparameters?: JobCreateParams.Hyperparameters;
466467

0 commit comments

Comments
 (0)