Skip to content

Commit 995075b

Browse files
chore(docs): add missing deprecation warnings
1 parent 0989ddc commit 995075b

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
@@ -1169,7 +1169,7 @@ export interface ChatCompletionCreateParamsBase {
11691169
frequency_penalty?: number | null;
11701170

11711171
/**
1172-
* Deprecated in favor of `tool_choice`.
1172+
* @deprecated Deprecated in favor of `tool_choice`.
11731173
*
11741174
* Controls which (if any) function is called by the model.
11751175
*
@@ -1187,7 +1187,7 @@ export interface ChatCompletionCreateParamsBase {
11871187
function_call?: 'none' | 'auto' | ChatCompletionFunctionCallOption;
11881188

11891189
/**
1190-
* Deprecated in favor of `tools`.
1190+
* @deprecated Deprecated in favor of `tools`.
11911191
*
11921192
* A list of functions the model may generate JSON inputs for.
11931193
*/
@@ -1220,8 +1220,8 @@ export interface ChatCompletionCreateParamsBase {
12201220
max_completion_tokens?: number | null;
12211221

12221222
/**
1223-
* The maximum number of [tokens](/tokenizer) that can be generated in the chat
1224-
* completion. This value can be used to control
1223+
* @deprecated The maximum number of [tokens](/tokenizer) that can be generated in
1224+
* the chat completion. This value can be used to control
12251225
* [costs](https://openai.com/api/pricing/) for text generated via API.
12261226
*
12271227
* 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
@@ -466,8 +466,9 @@ export interface JobCreateParams {
466466
training_file: string;
467467

468468
/**
469-
* The hyperparameters used for the fine-tuning job. This value is now deprecated
470-
* in favor of `method`, and should be passed in under the `method` parameter.
469+
* @deprecated The hyperparameters used for the fine-tuning job. This value is now
470+
* deprecated in favor of `method`, and should be passed in under the `method`
471+
* parameter.
471472
*/
472473
hyperparameters?: JobCreateParams.Hyperparameters;
473474

0 commit comments

Comments
 (0)