(session: SessionDep, current_user: CurrentUser, create_chat_obj: CreateChat)
| 190 | result_id_expr="id" |
| 191 | )) |
| 192 | async 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") |
nothing calls this directly
no test coverage detected