Skip to content

Commit

Permalink
Merge pull request #24 from ls1intum/integrate-kb-manager
Browse files Browse the repository at this point in the history
fix bug due to old reference
  • Loading branch information
ninori9 authored Jan 7, 2025
2 parents 20c3a01 + bde2368 commit 1e5f9e2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/api/question_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ async def ask(request: UserRequest):
if not question or not classification:
raise HTTPException(status_code=400, detail="No question or classification provided")

if len(question) > config.MAX_MESSAGE_LENGTH:
raise HTTPException(
status_code=400,
detail=f"Question length exceeds the allowed limit of {config.MAX_MESSAGE_LENGTH} characters"
)

logging.info(f"Received question: {question} with classification: {classification}")

if config.TEST_MODE:
Expand Down

0 comments on commit 1e5f9e2

Please sign in to comment.