snowby666 / poe-api-wrapper

πŸ‘Ύ A Python API wrapper for Poe.com. With this, you will have free access to GPT-4, Claude, Llama, Gemini, Mistral and more! πŸš€
https://pypi.org/project/poe-api-wrapper/
GNU General Public License v3.0
687 stars 82 forks source link

Bot <bot_name> not found #119

Closed EugeneBoondock closed 3 months ago

EugeneBoondock commented 3 months ago

Getting this similar error:

ValueError: Bot not found. Make sure the bot exists before creating new chat.

Everything was working well until now... I checked on poe, the message gets received by the poe bot I choose, but then for the output to be brought back, that's where the isseu seems to arise:

Traceback (most recent call last): File "/home/container/.local/lib/python3.12/site-packages/discord/client.py", line 441, in _run_event await coro(*args, **kwargs) File "/home/container/earthie/earthie.py", line 34, in on_message response = await ask_question(message.guild.id, "Earthie", message.content, message.author.name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/earthie/earthie.py", line 52, in ask_question for chunk in poe_client.send_message(bot_name, formatted_message, chatCode=chat_code, chatId=chat_id): File "/home/container/earthie/poe_api_wrapper/api.py", line 748, in send_message raise e File "/home/container/earthie/poe_api_wrapper/api.py", line 718, in send_message raise ValueError( ValueError: Bot earthie not found. Make sure the bot exists before creating new chat.

Anya-RB-Chen commented 3 months ago

I had exactly the same issue. Tried to downgrade the version of poe-api-wrapper to 1.3.6, and everything works so far for me:

pip install -U poe-api-wrapper[proxy]==1.3.6
srcao-bingo commented 3 months ago

@Anya-RB-Chen I tried your suggestions but it didn't work. image

2024-03-14 16:27:09.476 | INFO | poe_api_wrapper.api:init:141 - δ»£η†θΏžζŽ₯成功 2024-03-14 16:27:10.139 | INFO | poe_api_wrapper.api:init:155 - Connection established with poe.com Traceback (most recent call last): File "e:\2-code\Source\utils\poe-api-wrapper-V2\poe_api_wrapper_v2_main.py", line 23, in for chunk in client.send_message(bot, message): File "C:\Users\cao.conda\envs\poe-api-wrapper\lib\site-packages\poe_api_wrapper\api.py", line 757, in send_message raise e File "C:\Users\cao.conda\envs\poe-api-wrapper\lib\site-packages\poe_api_wrapper\api.py", line 727, in send_message raise ValueError( ValueError: Bot gpt3_5 not found. Make sure the bot exists before creating new chat.

srcao-bingo commented 3 months ago

image

I opened the web page and found that the message had been sent successfully, but the error was still displayed in the terminal. (ValueError: Bot gpt3_5 not found. Make sure the bot exists before creating new chat. )

image

EugeneBoondock commented 3 months ago

I had exactly the same issue. Tried to downgrade the version of poe-api-wrapper to 1.3.6, and everything works so far for me:

pip install -U poe-api-wrapper[proxy]==1.3.6

I tried this, still the same issue happening