Skip to content

Commit

Permalink
feat: add endpoint for gp question point gen
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-ny committed Sep 24, 2024
1 parent 2f8d5ca commit 7e048e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/src/user_questions/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from src.notes.models import Note
from src.user_questions.models import Answer, Point, UserQuestion
from src.user_questions.schemas import CreateUserQuestion, UserQuestionMiniDTO
from src.lm.generate_points import get_relevant_analyses


router = APIRouter(prefix="/user-questions", tags=["user-questions"])
Expand Down Expand Up @@ -91,3 +92,8 @@ def create_user_question(
session.commit()
session.refresh(user_question)
return user_question


@router.get("/ask-gp-question")
def ask_gp_question(question: str):
return get_relevant_analyses(question)

0 comments on commit 7e048e4

Please sign in to comment.