(session: SessionDep, current_user: CurrentUser, request_question: ChatQuestion,
current_assistant: CurrentAssistant)
| 270 | @router.post("/question", summary=f"{PLACEHOLDER_PREFIX}ask_question") |
| 271 | @require_permissions(permission=SqlbotPermission(type='chat', keyExpression="request_question.chat_id")) |
| 272 | async def question_answer(session: SessionDep, current_user: CurrentUser, request_question: ChatQuestion, |
| 273 | current_assistant: CurrentAssistant): |
| 274 | return await question_answer_inner(session, current_user, request_question, current_assistant, embedding=True) |
| 275 | |
| 276 | |
| 277 | async def question_answer_inner(session: SessionDep, current_user: CurrentUser, request_question: ChatQuestion, |
nothing calls this directly
no test coverage detected