Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyUltroid/fns/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,12 @@ async def get_google_images(query):


async def get_chatbot_reply(message):
chatbot_base = "https://api.safone.dev/chatbot?query={}"
chatbot_base = "https://api.ryzenths.dpdns.org/api/v1/openai-v2?input={}"
req_link = chatbot_base.format(
message,
)
try:
return (await async_searcher(req_link, re_json=True)).get("response")
return (await async_searcher(req_link, re_json=True)).get("data").get("choices")[0].get("message").get("content")
except Exception:
LOGS.info(f"**ERROR:**`{format_exc()}`")

Expand Down
Loading