Skip to content

Commit

Permalink
docs: update deprecation messages (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 21, 2025
1 parent f5139d4 commit a1d0ddc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export interface ChatCompletionAssistantMessageParam {
content?: string | Array<ChatCompletionContentPartText | ChatCompletionContentPartRefusal> | null;

/**
* @deprecated: Deprecated and replaced by `tool_calls`. The name and arguments of
* a function that should be called, as generated by the model.
* @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a
* function that should be called, as generated by the model.
*/
function_call?: ChatCompletionAssistantMessageParam.FunctionCall | null;

Expand Down Expand Up @@ -198,8 +198,8 @@ export namespace ChatCompletionAssistantMessageParam {
}

/**
* @deprecated: Deprecated and replaced by `tool_calls`. The name and arguments of
* a function that should be called, as generated by the model.
* @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a
* function that should be called, as generated by the model.
*/
export interface FunctionCall {
/**
Expand Down Expand Up @@ -360,8 +360,8 @@ export namespace ChatCompletionChunk {
content?: string | null;

/**
* @deprecated: Deprecated and replaced by `tool_calls`. The name and arguments of
* a function that should be called, as generated by the model.
* @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a
* function that should be called, as generated by the model.
*/
function_call?: Delta.FunctionCall;

Expand All @@ -380,8 +380,8 @@ export namespace ChatCompletionChunk {

export namespace Delta {
/**
* @deprecated: Deprecated and replaced by `tool_calls`. The name and arguments of
* a function that should be called, as generated by the model.
* @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a
* function that should be called, as generated by the model.
*/
export interface FunctionCall {
/**
Expand Down Expand Up @@ -620,8 +620,8 @@ export interface ChatCompletionMessage {
audio?: ChatCompletionAudio | null;

/**
* @deprecated: Deprecated and replaced by `tool_calls`. The name and arguments of
* a function that should be called, as generated by the model.
* @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a
* function that should be called, as generated by the model.
*/
function_call?: ChatCompletionMessage.FunctionCall | null;

Expand All @@ -633,8 +633,8 @@ export interface ChatCompletionMessage {

export namespace ChatCompletionMessage {
/**
* @deprecated: Deprecated and replaced by `tool_calls`. The name and arguments of
* a function that should be called, as generated by the model.
* @deprecated Deprecated and replaced by `tool_calls`. The name and arguments of a
* function that should be called, as generated by the model.
*/
export interface FunctionCall {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/resources/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ export interface FileObject {
| 'vision';

/**
* @deprecated: Deprecated. The current status of the file, which can be either
* @deprecated Deprecated. The current status of the file, which can be either
* `uploaded`, `processed`, or `error`.
*/
status: 'uploaded' | 'processed' | 'error';

/**
* @deprecated: Deprecated. For details on why a fine-tuning training file failed
* @deprecated Deprecated. For details on why a fine-tuning training file failed
* validation, see the `error` field on `fine_tuning.job`.
*/
status_details?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/fine-tuning/jobs/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export interface JobCreateParams {

export namespace JobCreateParams {
/**
* @deprecated: The hyperparameters used for the fine-tuning job. This value is now
* @deprecated The hyperparameters used for the fine-tuning job. This value is now
* deprecated in favor of `method`, and should be passed in under the `method`
* parameter.
*/
Expand Down

0 comments on commit a1d0ddc

Please sign in to comment.