(
payload: ChatThreadCreateRequest,
auth: AuthContext = Depends(require_chat_scope),
service: ChatService = Depends(get_service),
)
| 233 | |
| 234 | @router.post("/chat/threads") |
| 235 | async def create_chat_thread( |
| 236 | payload: ChatThreadCreateRequest, |
| 237 | auth: AuthContext = Depends(require_chat_scope), |
| 238 | service: ChatService = Depends(get_service), |
| 239 | ): |
| 240 | return await _run( |
| 241 | lambda: service.create_thread(auth.username, _model_dict(payload)) |
| 242 | ) |
| 243 | |
| 244 | |
| 245 | @router.get("/chat/threads/{thread_id}") |
nothing calls this directly
no test coverage detected