Skip to content

Commit

Permalink
No need, fixed in latest api
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism committed Aug 12, 2024
1 parent c23a028 commit d8bf64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misskaty/plugins/chatbot_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def gpt4_chatbot(self, ctx: Message, strings):
if response.status_code != 200:
return await msg.edit_msg(f"ERROR: Status Code {response.json()}")
try:
await msg.edit_msg(f"{response.json()['choices'][0]['message']['content'].replace('undefined', '')}\n\n<b>Powered by:</b> <code>GPT 4o Mini</code>")
await msg.edit_msg(f"{response.json()['choices'][0]['message']['content']}\n\n<b>Powered by:</b> <code>GPT 4o Mini</code>")
except Exception as err:
await msg.edit_msg(f"ERROR: {err}")

Expand Down

0 comments on commit d8bf64a

Please sign in to comment.