Update integrations.mdx (#1633)

* Update integrations.mdx

Documentation is far too sparse regarding that OpenAI llms are modelName and not model. Going to cause veins to burst in people who are trying "model" and getting bad request errors.

* Update docs/docs/modules/models/llms/integrations.mdx

---------

Co-authored-by: Nuno Campos <nuno@boringbits.io>
This commit is contained in:
Jake Krajewski
2023-06-14 05:29:45 -04:00
committed by GitHub
parent e5af8d3250
commit 1154de49c0
@@ -15,6 +15,7 @@ LangChain offers a number of LLM implementations that integrate with various mod
import { OpenAI } from "langchain/llms/openai";
const model = new OpenAI({
modelName: "text-davinci-003", // Defaults to "text-davinci-003" if no model provided.
temperature: 0.9,
openAIApiKey: "YOUR-API-KEY", // In Node.js defaults to process.env.OPENAI_API_KEY
});