Skip to content

Commit

Permalink
lint/format
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jul 30, 2024
1 parent fa71ccd commit 5320181
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/langchain-scripts/src/cli/docs/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export async function fillChatIntegrationDocTemplate(fields: {
await fs.promises.writeFile(docPath, docTemplate);

console.log(
"Successfully created new chat model integration doc at ${docPath}." +
`Successfully created new chat model integration doc at ${docPath}.` +
"Please run the cells in the doc to record the outputs, and replace the Python documentation support URL with the proper URL."
);
}
7 changes: 5 additions & 2 deletions libs/langchain-scripts/src/cli/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ async function main() {

const options = program.opts<CLIInput>();

let { package: packageName, module: moduleName, type } = options;
const { module: moduleName, type } = options;
let { package: packageName } = options;

if (packageName.startsWith("@langchain/")) {
packageName = packageName.replace("@langchain/", "");
Expand All @@ -43,4 +44,6 @@ async function main() {
}
}

main();
main().catch((err) => {
throw err;
});

0 comments on commit 5320181

Please sign in to comment.