Skip to content

Commit

Permalink
reslved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak5598 committed Jul 4, 2024
1 parent 5215385 commit 34deb00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ def gpt_bot(payload):
today = datetime.now(timezone.utc).date()
rate_limit_key = f"global_daily_request_{today}"
total_token_used = cache.get(rate_limit_key, 0)

if len(doubt) > 50:
doubt_limit =50
if len(doubt) >= doubt_limit:
client.chat_postMessage(channel=user, text="Please enter less than 50 characters")
return

Expand Down

0 comments on commit 34deb00

Please sign in to comment.