adding console log
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user