diff --git a/app/core_utils.py b/app/core_utils.py index 6abd5097..49b90f0c 100755 --- a/app/core_utils.py +++ b/app/core_utils.py @@ -2,7 +2,6 @@ import requests import discord import os import json -import httpx my_guilds = [826547484632678450, 152921472304676865] my_id = 144986109804412928 @@ -172,8 +171,7 @@ async def send_to_llm(ctx, message): headers = {"Content-Type": "application/json"} try: - client = httpx.AsyncClient() - response = await client.post(url, json=payload, headers=headers) + response = requests.post(url, json=payload, headers=headers) answer = response.json()["message"]["content"] return remove_between(answer, "", "")