Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/acheong08/EdgeGPT
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed Jul 9, 2023
2 parents ffd668e + 6f688e9 commit 92cdedc
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 109 deletions.
3 changes: 2 additions & 1 deletion src/EdgeGPT/EdgeGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ async def ask(
messages_left = response["item"]["throttling"][
"maxNumUserMessagesInConversation"
] - response["item"]["throttling"].get(
"numUserMessagesInConversation", 0
"numUserMessagesInConversation",
0,
)
if messages_left == 0:
raise Exception("Max messages reached")
Expand Down
Loading

0 comments on commit 92cdedc

Please sign in to comment.