Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get organizations uuid info when I ran the example.py #21

Open
godblessbb opened this issue Aug 19, 2023 · 3 comments
Open

can't get organizations uuid info when I ran the example.py #21

godblessbb opened this issue Aug 19, 2023 · 3 comments

Comments

@godblessbb
Copy link

Traceback (most recent call last):
File "/Users/bicaihua/PycharmProjects/Weibo/weibo-crawler/Claude_Copilot.py", line 109, in
main()
File "/Users/bicaihua/PycharmProjects/Weibo/weibo-crawler/Claude_Copilot.py", line 30, in main
claude_obj = claude_wrapper.ClaudeWrapper(client, organizations[0]['uuid']) # type: ignore
TypeError: 'NoneType' object is not subscriptable

error like above. how to solve this?

@Randomboiii03
Copy link

the owner is trying to fix the error, for sometime try this: https://github.com/KoushikNavuluri/Claude-API

@st1vms
Copy link

st1vms commented Aug 23, 2023

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 ⭐ if you can : )

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

@AshwinPathi
Copy link
Owner

@godblessbb @Randomboiii03 let me know if it works now. Usually its a problem with headers/cookies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants