Spaces:
Runtime error
Runtime error
| 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 }; | |