mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Assistant validator
This commit is contained in:
@@ -32,6 +32,7 @@ async def info(session: SessionDep, id: str, virtual: Optional[int] = Query(None
|
||||
db_model = await get_assistant_info(session=session, assistant_id=id)
|
||||
if not db_model:
|
||||
return AssistantValidator()
|
||||
print(db_model)
|
||||
db_model = AssistantModel.model_validate(db_model)
|
||||
access_token_expires = timedelta(minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES)
|
||||
assistantDict = {
|
||||
|
||||
Reference in New Issue
Block a user