AshwinPathi / claude-api-py

Unofficial Python API for Anthropic's Claude LLM
https://pypi.org/project/claude-api-py/
MIT License
108 stars 11 forks source link

Hello, I recently improved the existing solutions, by fixing header consistency, adding auto session gathering using Firefox login and selenium, and auto user agent retrieval along with timezone. #22

Closed Lxb921006 closed 4 months ago

Lxb921006 commented 10 months ago
          Hello, I recently improved the existing solutions, by fixing header consistency, adding auto session gathering using Firefox login and selenium, and auto user agent retrieval along with timezone.

My unofficial version of the API does currently work like a charm, it supports chat creation/deletion/retrieval and messages with attachments (with all the supported file types). It also let you handle a MessageRateLimit exception that provides you with the amount of seconds to sleep before next rateReset.

Come have a try! Leave a :star: if you can : )

https://github.com/st1vms/unofficial-claude2-api

Originally posted by @st1vms in https://github.com/AshwinPathi/claude-api-py/issues/21#issuecomment-1689654860