Skip to content

Commit

Permalink
Update LLMChain example (langchain-ai#759)
Browse files Browse the repository at this point in the history
LLMChain need to new it
  • Loading branch information
YikaJ authored Apr 12, 2023
1 parent 8e4ff20 commit b5edb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/src/chains/llm_chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface LLMChainInput extends ChainInputs {
* import { OpenAI } from "langchain/llms/openai";
* import { PromptTemplate } from "langchain/prompts";
* const prompt = PromptTemplate.fromTemplate("Tell me a {adjective} joke");
* const llm = LLMChain({ llm: new OpenAI(), prompt });
* const llm = new LLMChain({ llm: new OpenAI(), prompt });
* ```
*/
export class LLMChain extends BaseChain implements LLMChainInput {
Expand Down

0 comments on commit b5edb5c

Please sign in to comment.