adding console log

This commit is contained in:
Carlos
2025-04-09 23:14:06 -04:00
parent 3263b54c43
commit 926b3c2f8a

View File

@ -29,6 +29,7 @@ const validateApiKey = (req, res, next) => {
app.post("/api/generate", validateApiKey, async (req, res) => {
try {
// Forwarding the request to localhost:11434 with the prompt
console.log('Body: ', req.body)
const response = await axios.post(
"http://localhost:11434/api/generate",
req.body