This commit is contained in:
Carlos
2025-04-10 01:29:25 -04:00
parent f93ab4a887
commit 728068fd84

View File

@ -35,7 +35,7 @@ const validateApiKey = (req, res, next) => {
// Forward request to localhost:11434 (ollama)
app.post("/api/chat", validateApiKey, async (req, res) => {
app.post("/api/generate/api/chat", validateApiKey, async (req, res) => {
try {
const { model, messages, system } = req.body;
@ -49,7 +49,7 @@ app.post("/api/chat", validateApiKey, async (req, res) => {
console.log("🧠 Prompt for Ollama:\n", prompt);
const response = await axios.post(
"http://localhost:11434/api/chat",
"http://localhost:11434/api/generate/api/chat",
{
model: model || "deepseek-r1:latest",
prompt,