From 24e5d65d1ba55ac165c2937355844ad3f6cf515a Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Fri, 3 Nov 2023 15:51:18 -0700 Subject: [PATCH 1/4] Fix docs (#3151) --- docs/docs/integrations/chat_memory/cassandra.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/integrations/chat_memory/cassandra.mdx b/docs/docs/integrations/chat_memory/cassandra.mdx index 281cb3e401fe..bbbad27cd84c 100644 --- a/docs/docs/integrations/chat_memory/cassandra.mdx +++ b/docs/docs/integrations/chat_memory/cassandra.mdx @@ -29,6 +29,6 @@ npm install cassandra-driver ## Usage -import Example from "@examples/memory/cassandra.ts"; +import Example from "@examples/memory/cassandra-store.ts"; {Example} From cf9d45ed738b3596213007632c971893c165619a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Morales=20V=C3=A9lez?= Date: Sat, 4 Nov 2023 19:28:03 +0100 Subject: [PATCH 2/4] Fix typo in output types table (#3153) * Fix typo in output types table * Update interface.mdx --------- Co-authored-by: Jacob Lee --- docs/docs/expression_language/interface.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/expression_language/interface.mdx b/docs/docs/expression_language/interface.mdx index 7eeae778eca1..550d75c5821a 100644 --- a/docs/docs/expression_language/interface.mdx +++ b/docs/docs/expression_language/interface.mdx @@ -25,7 +25,7 @@ The **input type** varies by component : The **output type** also varies by component : -| Component | Input Type | +| Component | Output Type | | ------------ | --------------------- | | LLM | String | | ChatModel | ChatMessage | From a203b03698ef89d87a2dbdae03405e145c61ecd4 Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Sat, 4 Nov 2023 11:34:45 -0700 Subject: [PATCH 3/4] Update dep (#3154) --- langchain/package.json | 2 +- yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/langchain/package.json b/langchain/package.json index fd78d9021b30..e36fcc82479d 100644 --- a/langchain/package.json +++ b/langchain/package.json @@ -1356,7 +1356,7 @@ "js-yaml": "^4.1.0", "jsonpointer": "^5.0.1", "langchainhub": "~0.0.6", - "langsmith": "~0.0.31", + "langsmith": "~0.0.48", "ml-distance": "^4.0.0", "object-hash": "^3.0.0", "openai": "~4.4.0", diff --git a/yarn.lock b/yarn.lock index 68a46dfc4d22..e49c2be263e2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -21688,7 +21688,7 @@ __metadata: jsdom: ^22.1.0 jsonpointer: ^5.0.1 langchainhub: ~0.0.6 - langsmith: ~0.0.31 + langsmith: ~0.0.48 llmonitor: ^0.5.8 lodash: ^4.17.21 mammoth: ^1.5.1 @@ -22055,9 +22055,9 @@ __metadata: languageName: unknown linkType: soft -"langsmith@npm:~0.0.31": - version: 0.0.31 - resolution: "langsmith@npm:0.0.31" +"langsmith@npm:~0.0.48": + version: 0.0.48 + resolution: "langsmith@npm:0.0.48" dependencies: "@types/uuid": ^9.0.1 commander: ^10.0.1 @@ -22066,7 +22066,7 @@ __metadata: uuid: ^9.0.0 bin: langsmith: dist/cli/main.cjs - checksum: 26c09a122c8541c92fdacae47d73621a975a69a4003b35c82a2a59f302cecff66e521cb9c0283055da1aa0d9cf37db4258e561314ac4cbba10997258cc480874 + checksum: 2552c1a8549eab8e03a5530e73ce37ad0e147ca3084edbfd56b7a29b92c7c5579e5c1e53222bfb846b5ee8219d8d80cc9a7cc07e78717e95cdefedb95d76cd86 languageName: node linkType: hard From 893a45057f2949f5a8ed9da80b4f5cacaf63023e Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Sun, 5 Nov 2023 10:05:42 -0800 Subject: [PATCH 4/4] Cloudflare workers stream typing fix (#3159) --- langchain/src/util/stream.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/langchain/src/util/stream.ts b/langchain/src/util/stream.ts index fd7a1d006310..a5a5d88f391e 100644 --- a/langchain/src/util/stream.ts +++ b/langchain/src/util/stream.ts @@ -16,7 +16,10 @@ export class IterableReadableStream extends ReadableStream { try { const result = await this.reader.read(); if (result.done) this.reader.releaseLock(); // release lock when stream becomes closed - return result; + return { + done: result.done, + value: result.value as T, // Cloudflare Workers typing fix + }; } catch (e) { this.reader.releaseLock(); // release lock when stream becomes errored throw e;