Skip to content

Commit

Permalink
Merge pull request #185 from tisnik/remove-condition
Browse files Browse the repository at this point in the history
Remove condition for query validation if it is a follow-up question
  • Loading branch information
tisnik authored Dec 6, 2024
2 parents dc1aff2 + e9f3c18 commit b4287e3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ols/app/endpoints/ols.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,7 @@ def conversation_request(
validate_requested_provider_model(llm_request)

# Validate the query
if not previous_input:
valid = validate_question(conversation_id, llm_request)
else:
logger.debug("follow-up conversation - skipping question validation")
valid = True

valid = validate_question(conversation_id, llm_request)
timestamps["validate question"] = time.time()

if not valid:
Expand Down

0 comments on commit b4287e3

Please sign in to comment.