chore/ 删除无用文件
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"""
|
||||
配额检查路由。
|
||||
"""
|
||||
|
||||
from fastapi import APIRouter, Depends
|
||||
|
||||
from app.core.dependencies import get_current_user
|
||||
|
||||
@@ -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, ""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user