Skip to content

Commit

Permalink
langchain[patch]: Add missing entrypoint (#3467)
Browse files Browse the repository at this point in the history
* Add missing entrypoint

* Mark as optional
  • Loading branch information
jacoblee93 authored Nov 30, 2023
1 parent ccc9ea3 commit 6ae9e00
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/api_refs/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
"./langchain/src/document_loaders/web/youtube.ts",
"./langchain/src/document_loaders/fs/directory.ts",
"./langchain/src/document_loaders/fs/buffer.ts",
"./langchain/src/document_loaders/fs/chatgpt.ts",
"./langchain/src/document_loaders/fs/text.ts",
"./langchain/src/document_loaders/fs/json.ts",
"./langchain/src/document_loaders/fs/srt.ts",
Expand Down
6 changes: 3 additions & 3 deletions langchain/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ document_loaders/fs/directory.d.ts
document_loaders/fs/buffer.cjs
document_loaders/fs/buffer.js
document_loaders/fs/buffer.d.ts
document_loaders/fs/chatgpt.cjs
document_loaders/fs/chatgpt.js
document_loaders/fs/chatgpt.d.ts
document_loaders/fs/text.cjs
document_loaders/fs/text.js
document_loaders/fs/text.d.ts
Expand Down Expand Up @@ -472,9 +475,6 @@ document_loaders/fs/openai_whisper_audio.d.ts
document_loaders/fs/pptx.cjs
document_loaders/fs/pptx.js
document_loaders/fs/pptx.d.ts
document_loaders/fs/chatgpt.cjs
document_loaders/fs/chatgpt.js
document_loaders/fs/chatgpt.d.ts
document_transformers/html_to_text.cjs
document_transformers/html_to_text.js
document_transformers/html_to_text.d.ts
Expand Down
11 changes: 8 additions & 3 deletions langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@
"document_loaders/fs/buffer.cjs",
"document_loaders/fs/buffer.js",
"document_loaders/fs/buffer.d.ts",
"document_loaders/fs/chatgpt.cjs",
"document_loaders/fs/chatgpt.js",
"document_loaders/fs/chatgpt.d.ts",
"document_loaders/fs/text.cjs",
"document_loaders/fs/text.js",
"document_loaders/fs/text.d.ts",
Expand Down Expand Up @@ -484,9 +487,6 @@
"document_loaders/fs/pptx.cjs",
"document_loaders/fs/pptx.js",
"document_loaders/fs/pptx.d.ts",
"document_loaders/fs/chatgpt.cjs",
"document_loaders/fs/chatgpt.js",
"document_loaders/fs/chatgpt.d.ts",
"document_transformers/html_to_text.cjs",
"document_transformers/html_to_text.js",
"document_transformers/html_to_text.d.ts",
Expand Down Expand Up @@ -2188,6 +2188,11 @@
"import": "./document_loaders/fs/buffer.js",
"require": "./document_loaders/fs/buffer.cjs"
},
"./document_loaders/fs/chatgpt": {
"types": "./document_loaders/fs/chatgpt.d.ts",
"import": "./document_loaders/fs/chatgpt.js",
"require": "./document_loaders/fs/chatgpt.cjs"
},
"./document_loaders/fs/text": {
"types": "./document_loaders/fs/text.d.ts",
"import": "./document_loaders/fs/text.js",
Expand Down
2 changes: 2 additions & 0 deletions langchain/scripts/create-entrypoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const entrypoints = {
"document_loaders/web/youtube": "document_loaders/web/youtube",
"document_loaders/fs/directory": "document_loaders/fs/directory",
"document_loaders/fs/buffer": "document_loaders/fs/buffer",
"document_loaders/fs/chatgpt": "document_loaders/fs/chatgpt",
"document_loaders/fs/text": "document_loaders/fs/text",
"document_loaders/fs/json": "document_loaders/fs/json",
"document_loaders/fs/srt": "document_loaders/fs/srt",
Expand Down Expand Up @@ -439,6 +440,7 @@ const requiresOptionalDependency = [
"document_loaders/web/youtube",
"document_loaders/fs/directory",
"document_loaders/fs/buffer",
"document_loaders/fs/chatgpt",
"document_loaders/fs/text",
"document_loaders/fs/json",
"document_loaders/fs/srt",
Expand Down
1 change: 1 addition & 0 deletions langchain/src/load/import_constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const optionalImportEntrypoints = [
"langchain/document_loaders/web/youtube",
"langchain/document_loaders/fs/directory",
"langchain/document_loaders/fs/buffer",
"langchain/document_loaders/fs/chatgpt",
"langchain/document_loaders/fs/text",
"langchain/document_loaders/fs/json",
"langchain/document_loaders/fs/srt",
Expand Down
3 changes: 3 additions & 0 deletions langchain/src/load/import_type.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ export interface OptionalImportMap {
"langchain/document_loaders/fs/buffer"?:
| typeof import("../document_loaders/fs/buffer.js")
| Promise<typeof import("../document_loaders/fs/buffer.js")>;
"langchain/document_loaders/fs/chatgpt"?:
| typeof import("../document_loaders/fs/chatgpt.js")
| Promise<typeof import("../document_loaders/fs/chatgpt.js")>;
"langchain/document_loaders/fs/text"?:
| typeof import("../document_loaders/fs/text.js")
| Promise<typeof import("../document_loaders/fs/text.js")>;
Expand Down

1 comment on commit 6ae9e00

@vercel
Copy link

@vercel vercel bot commented on 6ae9e00 Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.