Download core/aiConfig.js from phanquocdat123/Chatbot_Robot_Automation: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/spaces/phanquocdat123/Chatbot_Robot_Automation/resolve/main/core/aiConfig.js
- Command line
-
hf download hf://spaces/phanquocdat123/Chatbot_Robot_Automation/core/aiConfig.js
-
curl -L -o aiConfig.js https://huggingface.co/spaces/phanquocdat123/Chatbot_Robot_Automation/resolve/main/core/aiConfig.js
458 Bytes
| // core/aiConfig.js | |
| const { GoogleGenerativeAI } = require("@google/generative-ai"); | |
| // Khởi tạo Google AI với API Key từ file .env | |
| const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY); | |
| // Cấu hình Model Gemma 3 (Hoặc Gemini tùy theo key của Đạt) | |
| const model = genAI.getGenerativeModel({ | |
| model: "gemini-1.5-flash", // Hoặc "gemma-3-flash" nếu Đạt đã có quyền truy cập sớm | |
| }); | |
| module.exports = { model }; |