Skip to content

Commit

Permalink
deprecate old args
Browse files Browse the repository at this point in the history
  • Loading branch information
madams0013 committed Aug 1, 2024
1 parent 2819cd8 commit 201980a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions langchain/src/hub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ export async function push(
apiKey?: string;
apiUrl?: string;
parentCommitHash?: string;
/** @deprecated Use isPublic instead. */
newRepoIsPublic?: boolean;
isPublic?: boolean;
/** @deprecated Use description instead. */
newRepoDescription?: string;
description?: string;
readme?: string;
tags?: string[];
}
Expand All @@ -27,8 +31,8 @@ export async function push(
const payloadOptions = {
object: runnable,
parentCommitHash: options?.parentCommitHash,
isPublic: options?.newRepoIsPublic,
description: options?.newRepoDescription,
isPublic: options?.isPublic,
description: options?.description,
readme: options?.readme,
tags: options?.tags,
};
Expand Down

0 comments on commit 201980a

Please sign in to comment.