Skip to content

Commit 9909c58

Browse files
fix(core): update outdated docs link (#9361)
1 parent 02210a1 commit 9909c58

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libs/langchain-core/src/errors/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export function addLangChainErrorFields(
1414
lc_error_code: LangChainErrorCodes
1515
) {
1616
(error as any).lc_error_code = lc_error_code;
17-
error.message = `${error.message}\n\nTroubleshooting URL: https://js.langchain.com/docs/troubleshooting/errors/${lc_error_code}/\n`;
17+
error.message = `${error.message}\n\nTroubleshooting URL: https://docs.langchain.com/oss/javascript/langchain/errors/${lc_error_code}/\n`;
1818
return error;
1919
}

libs/providers/langchain-anthropic/src/utils/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function addLangChainErrorFields(
1717
lc_error_code: LangChainErrorCodes
1818
) {
1919
(error as any).lc_error_code = lc_error_code;
20-
error.message = `${error.message}\n\nTroubleshooting URL: https://js.langchain.com/docs/troubleshooting/errors/${lc_error_code}/\n`;
20+
error.message = `${error.message}\n\nTroubleshooting URL: https://docs.langchain.com/oss/javascript/langchain/errors/${lc_error_code}/\n`;
2121
return error;
2222
}
2323

libs/providers/langchain-openai/src/utils/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ export function addLangChainErrorFields(
1616
lc_error_code: LangChainErrorCodes
1717
) {
1818
(error as any).lc_error_code = lc_error_code;
19-
error.message = `${error.message}\n\nTroubleshooting URL: https://js.langchain.com/docs/troubleshooting/errors/${lc_error_code}/\n`;
19+
error.message = `${error.message}\n\nTroubleshooting URL: https://docs.langchain.com/oss/javascript/langchain/errors/${lc_error_code}/\n`;
2020
return error;
2121
}

0 commit comments

Comments
 (0)