MCPcopy Index your code
hub / github.com/dataease/SQLBot / start_chat

Function start_chat

backend/apps/chat/api/chat.py:192–199  ·  view source on GitHub ↗
(session: SessionDep, current_user: CurrentUser, create_chat_obj: CreateChat)

Source from the content-addressed store, hash-verified

190 result_id_expr="id"
191))
192async def start_chat(session: SessionDep, current_user: CurrentUser, create_chat_obj: CreateChat):
193 try:
194 return create_chat(session, current_user, create_chat_obj)
195 except Exception as e:
196 raise HTTPException(
197 status_code=500,
198 detail=str(e)
199 )
200
201
202@router.post("/assistant/start", response_model=ChatInfo, summary=f"{PLACEHOLDER_PREFIX}assistant_start_chat")

Callers

nothing calls this directly

Calls 2

create_chatFunction · 0.90
CreateChatClass · 0.90

Tested by

no test coverage detected