Skip to content

Commit

Permalink
πŸš‘ Hardcoded diensthandy
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGawlik committed Jul 18, 2024
1 parent 14db7f8 commit 2776d51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ async def redirect():
)
def answer_a_question(query: RequestModel) -> ResponseModel:
question = query.question
if "dienst" in question.lower() and "handy" in question.lower():
question = "Wo kahn ich mein Dienst-Handy bestellen?"

if query.history is not None:
history = loads(query.history)
else:
Expand Down

0 comments on commit 2776d51

Please sign in to comment.