mirror of
https://github.com/sstent/AICyclingCoach.git
synced 2026-01-25 16:41:58 +00:00
10 lines
349 B
Python
10 lines
349 B
Python
from fastapi import Depends
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
from app.database import get_db
|
|
from app.services.ai_service import AIService
|
|
from typing import AsyncGenerator
|
|
|
|
|
|
async def get_ai_service(db: AsyncSession = Depends(get_db)) -> AIService:
|
|
"""Get AI service instance with database dependency."""
|
|
return AIService(db) |