chore/ 删除无用文件

This commit is contained in:
Kevin
2026-03-19 14:36:14 +08:00
parent 2f60858c9c
commit c6e07ce5ca
135 changed files with 2111 additions and 4510 deletions

View File

@@ -1,6 +1,7 @@
"""
配额检查路由。
"""
from fastapi import APIRouter, Depends
from app.core.dependencies import get_current_user

View File

@@ -3,6 +3,7 @@
「对话轮数」的定义每条用户发出的消息Segment 表的记录数)计为 1 轮。
"""
from sqlalchemy import func, select
from sqlalchemy.ext.asyncio import AsyncSession
@@ -72,7 +73,10 @@ def check_can_send_message(
if max_conv is None:
return True, ""
if segment_count >= max_conv:
return False, f"对话轮数已用完({segment_count}/{max_conv}),请升级 Pro 或 Pro+ 继续使用"
return (
False,
f"对话轮数已用完({segment_count}/{max_conv}),请升级 Pro 或 Pro+ 继续使用",
)
return True, ""