Skip to content

Commit

Permalink
Adds streaming: true to docs
Browse files Browse the repository at this point in the history
Adds missing property in the expected configuration for streaming
  • Loading branch information
cjbt authored Oct 16, 2023
1 parent 4ce65d5 commit bbcbcaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/src/models/llm/llm_streaming_stream_method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { OpenAI } from "langchain/llms/openai";
// To enable streaming, we pass in `streaming: true` to the LLM constructor.
const model = new OpenAI({
maxTokens: 25,
streaming: true,
});

const stream = await model.stream("Tell me a joke.");
Expand Down

0 comments on commit bbcbcaa

Please sign in to comment.