subatomicERROR's picture
✨ Added main router and integrated ollama & codelama endpoints
4b35062
raw
history blame
273 Bytes
from fastapi import APIRouter, Request
router = APIRouter()
@router.post("/")
async def ollama_response(request: Request):
data = await request.json()
question = data.get("question", "No question provided.")
return {"response": f"Olama received: {question}"}