adding right pattern
This commit is contained in:
@ -49,7 +49,7 @@ app.post("/api/generate/chat/completions", validateApiKey, async (req, res) => {
|
||||
console.log("Generated prompt for Ollama:\n", prompt);
|
||||
|
||||
const response = await axios.post(
|
||||
"http://localhost:11434/api/generate",
|
||||
"http://localhost:11434/api/generate/chat/completions",
|
||||
{
|
||||
model: model || "deepseek-r1:latest",
|
||||
prompt,
|
||||
|
Reference in New Issue
Block a user