feat: 增加会员服务与估价模版智能体
会员服务改为固定栏目,首页在线服务不再进入报告审核。估价模版智能体可多会话制作模版并下载,下载过程显示加载状态。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
55b5a87482
commit
2074a45681
63 files changed
+6428
-461
No files matched your search
@@ -9,7 +9,7 @@ from sqlalchemy.orm import Session
|
||||
|
||||
from app.core.deps import require_agent
|
||||
from app.db import get_db
|
||||
from app.models.agent_user import AgentActor, load_agent_actor
|
||||
from app.models.agent_user import AgentActor, load_agent_actor, presented_credential_version
|
||||
from app.models.content import read_upload_limit
|
||||
from app.models.valuation import ValuationFile, ValuationMessage, _now
|
||||
from app.services.dify_chat import DifyChatError, DifyNotConfigured, cited_documents, iter_dify_chat, upload_dify_file
|
||||
@@ -84,7 +84,11 @@ class SuggestionWrite(BaseModel):
|
||||
|
||||
def _actor(db: Session, principal: dict) -> AgentActor:
|
||||
try:
|
||||
return load_agent_actor(db, str(principal.get("sub") or ""))
|
||||
return load_agent_actor(
|
||||
db,
|
||||
str(principal.get("sub") or ""),
|
||||
credential_version=presented_credential_version(principal),
|
||||
)
|
||||
except LookupError as exc:
|
||||
raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="登录已失效") from exc
|
||||
|
||||
|
||||
Reference in new issue
Block a user