mirror of
https://github.com/Mintplex-Labs/langchainjs.git
synced 2026-07-01 12:17:38 -04:00
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:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user