MCPcopy
hub / github.com/AstrBotDevs/AstrBot / update_chat_session

Function update_chat_session

astrbot/dashboard/api/chat.py:148–160  ·  view source on GitHub ↗
(
    session_id: str,
    payload: ChatSessionPatchRequest,
    auth: AuthContext = Depends(require_chat_scope),
    service: ChatService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

146
147@router.patch("/chat/sessions/{session_id}")
148async def update_chat_session(
149 session_id: str,
150 payload: ChatSessionPatchRequest,
151 auth: AuthContext = Depends(require_chat_scope),
152 service: ChatService = Depends(get_service),
153):
154 return await _run(
155 lambda: service.update_session_display_name(
156 auth.username,
157 session_id,
158 payload.display_name,
159 )
160 )
161
162
163@router.delete("/chat/sessions/{session_id}")

Callers

nothing calls this directly

Calls 2

_runFunction · 0.70

Tested by

no test coverage detected