Updated with active subscription

This commit is contained in:
Saurab-Shrestha 2024-02-25 12:47:35 +05:45
parent 808a0fa6fc
commit 8271fedb78
15 changed files with 121 additions and 240 deletions

View file

@ -106,6 +106,7 @@ def prompt_completion(
db: Session = Depends(deps.get_db),
current_user: models.User = Security(
deps.get_current_user,
deps.get_active_subscription,
),
) -> OpenAICompletion | StreamingResponse:
try: