pradipGiriHugging's picture
Upload 7 files
4c9238e verified
raw
history blame contribute delete
370 Bytes
const { ChatOpenAI } = require("@langchain/openai");
const path = require('path');
require('dotenv').config({ path: path.resolve(__dirname, '.env') });
// Initialize the model
// We can use GPT-3.5-turbo or GPT-4o depending on needs and keys
const model = new ChatOpenAI({
modelName: "gpt-4o", // or gpt-3.5-turbo
temperature: 0.7,
});
module.exports = { model };