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

Cancelling message returns an error #81

Closed samuelchristlie closed 7 months ago

samuelchristlie commented 7 months ago

I've been using client.cancel_message(chunk) to cancel messages but after recent updates, it now returns the following error

  File "xxx", line 159, in <module>
    poe.cancel_message(chunk)
  File "xxx\lib\site-packages\poe_api_wrapper\api.py", line 900, in cancel_message
    variables = {"messageId": chunk["messageId"], "textLength": len(chunk["text"]), "linkifiedTextLength": len(chunk["linkifiedText"])}
KeyError: 'linkifiedText'
snowby666 commented 7 months ago

Thanks for the issue. I've just reviewed your PR and theres a syntax error with the spare ")" so I can't merge the PR.

But I'd added this in the new update.

samuelchristlie commented 7 months ago

Sorry, must've missed it when pasting changes. That'll do, thanks!

On Nov 29, 2023 10:16 PM, Ngô Đình Gia Bảo @.***> wrote:

Thanks for the issue. I've just reviewed your PR and theres a syntax error with the spare ")" so I can't merge the PR.

But I'd added this in the new update.

— Reply to this email directly, view it on GitHubhttps://github.com/snowby666/poe-api-wrapper/issues/81#issuecomment-1832093984, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6JUBR75P62UMFPULAHF7NDYG5GU3AVCNFSM6AAAAAA73LLBTSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZSGA4TGOJYGQ. You are receiving this because you authored the thread.Message ID: @.***>