Files
pgz-sport/routers/ai_stub_router.py

20 lines
599 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""AI Copilot stub — vraca info poruku dok modeli treniraju."""
from fastapi import APIRouter
from pydantic import BaseModel
router = APIRouter()
class AiAskBody(BaseModel):
question: str = ""
@router.post("/ai/ask")
@router.get("/ai/ask")
async def ai_ask_stub(question: str = "", body: AiAskBody = None):
q = question or (body.question if body else "")
return {
"answer": "🧠 AI asistent je privremeno nedostupan — modeli su u procesu učenja (finetune). Pokušajte ponovo za ~1 sat.",
"question": q,
"sources": [],
"mode": "training"
}