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
888 stars 103 forks source link

claude-3.5-sonnet 's Model should be "claude-3.5-sonnet", not "claude_3_igloo" #182

Open bash99 opened 2 months ago

bash99 commented 2 months ago

What I got when don't spec botname with client.get_chat_history(count=5)['data']

{'claude-3.5-sonnet': [{'chatId': xxxxx, 'chatCode': 'xxxx', 'id': 'xxxxxxx=', 'title': '语音处理'}] ... }

When I use bot='claude_3_igloo', I got no data.

bash99 commented 2 months ago

But when I try got last msg from chat session client.get_previous_messages(bot='claude-3.5-sonnet', chatId=chatId, count=1) the result msg is {'author': 'claude_3_igloo', 'text': '', 'messageId': xxxxxxx, 'contentType': 'text_markdown'} so the author is still claude_3_igloo