From 5320181b2168e563f2df412e7c374d9e47178736 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Tue, 30 Jul 2024 11:58:45 -0700 Subject: [PATCH] lint/format --- libs/langchain-scripts/src/cli/docs/chat.ts | 2 +- libs/langchain-scripts/src/cli/docs/index.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/langchain-scripts/src/cli/docs/chat.ts b/libs/langchain-scripts/src/cli/docs/chat.ts index 89d2e67ab4c8..1c4797889b02 100644 --- a/libs/langchain-scripts/src/cli/docs/chat.ts +++ b/libs/langchain-scripts/src/cli/docs/chat.ts @@ -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." ); } diff --git a/libs/langchain-scripts/src/cli/docs/index.ts b/libs/langchain-scripts/src/cli/docs/index.ts index df6e55782330..e8d802ace3f7 100644 --- a/libs/langchain-scripts/src/cli/docs/index.ts +++ b/libs/langchain-scripts/src/cli/docs/index.ts @@ -25,7 +25,8 @@ async function main() { const options = program.opts(); - let { package: packageName, module: moduleName, type } = options; + const { module: moduleName, type } = options; + let { package: packageName } = options; if (packageName.startsWith("@langchain/")) { packageName = packageName.replace("@langchain/", ""); @@ -43,4 +44,6 @@ async function main() { } } -main(); +main().catch((err) => { + throw err; +});