Skip to content

Commit

Permalink
Update chatbot_ai.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism committed Aug 10, 2024
1 parent 5d5121e commit 1193e18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misskaty/plugins/chatbot_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ async def gpt4_chatbot(self, ctx: Message, strings):
}
response = await fetch.post("https://duckduckgo.com/duckchat/v1/chat", headers=headers, json=data)
if response.status_code != 200:
self.log.info(response.text)
return await msg.edit_msg(f"ERROR: Status Code {response.status_code}")
messages = []
for line in response.text.splitlines():
Expand Down

0 comments on commit 1193e18

Please sign in to comment.