Skip to content

Commit

Permalink
Merge branch 'main' into brace/api-refs-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Nov 6, 2023
2 parents 7f5173b + 893a450 commit 703dfe5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/docs/expression_language/interface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/integrations/chat_memory/cassandra.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ npm install cassandra-driver

## Usage

import Example from "@examples/memory/cassandra.ts";
import Example from "@examples/memory/cassandra-store.ts";

<CodeBlock language="typescript">{Example}</CodeBlock>
2 changes: 1 addition & 1 deletion langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,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",
Expand Down
5 changes: 4 additions & 1 deletion langchain/src/util/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export class IterableReadableStream<T> extends ReadableStream<T> {
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;
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22269,7 +22269,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
Expand Down Expand Up @@ -22636,9 +22636,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
Expand All @@ -22647,7 +22647,7 @@ __metadata:
uuid: ^9.0.0
bin:
langsmith: dist/cli/main.cjs
checksum: 26c09a122c8541c92fdacae47d73621a975a69a4003b35c82a2a59f302cecff66e521cb9c0283055da1aa0d9cf37db4258e561314ac4cbba10997258cc480874
checksum: 2552c1a8549eab8e03a5530e73ce37ad0e147ca3084edbfd56b7a29b92c7c5579e5c1e53222bfb846b5ee8219d8d80cc9a7cc07e78717e95cdefedb95d76cd86
languageName: node
linkType: hard

Expand Down

0 comments on commit 703dfe5

Please sign in to comment.