-
Notifications
You must be signed in to change notification settings - Fork 78
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
Everything broke #51
Comments
same issue for me +1 |
Please settle it as soon as possible |
Hi guys, really not sure what's going on. I've been looking into it and they've changed a lot of stuff so it's really hard to debug what's going on. I'll look into this more later as I'm really busy right now but if someone gets it working again feel free to submit a PR. Sorry, I realize this is pretty urgent but I just don't have the time to fix it right now due to irl stuff. |
Happy to transfer this to another maintainer as well if that would interest anyone |
It seems Claude blocked non-browser traffic based on TLS fingerprint. |
I saw in python, have solution, use module curl_cffi, may be use curl can pass it |
@Explosion-Scratch Plz try to use module CycleTLS to impersonate browsers' fingerprints. |
Yes, you provided a great idea, I have verified it, thank you very much. |
How do I spoof a specific browser with this? I've looked through the code of curl_cffi. Where do I get the JA3 tokens? @jackytj |
Just visit https://browserleaks.com/tls with the browser u want to impersonate. |
Are these reusable/do they expire? |
Hi guys, working on it now. Good news! Instead of getting 403 I'm getting 400! Different error = progress |
I just used the CycleTLS method to simulate Ja3, and I can get the result normally, but I can't get the stream result, and I also working on it. |
I found exec use curl can get response
|
@unbrain According to your method, I failed to reproduce it successfully. Can you add your operating environment and curl version in detail? |
This seems to be a special case, due to newer curl versions or special circumstances caused by local proxies, the fingerprint of the function has not been blacklisted. This solution is not conducive to deploying to a production environment. |
I can make a simple request directly in nodejs without a problem, my nodejs version is v18.15.0 for MacOS const cookie = "xxxxxx"
const headers = new Headers()
headers.append('Referer', 'https://claude.ai/chats')
headers.append('Cookie', cookie)
fetch("https://claude.ai/api/organizations", {method: 'GET', headers: headers})
.then(res => res.json())
.then(console.log)
.catch(console.log) |
Guys, any progress? |
My draft implements both a cycleTLS approach (400 error currently) and a curl approach (403 error currently), feel free to contribute to it over at #54. Hopefully I'll get this worked out soon |
Organizations request almost always works, it's sending messages which I'm receiving error messages |
Sorry for the delay y'all. I'll work on it a bit tomorrow probably |
Guys, if you're open to paying (same price as official API), just use openRouter, it supports Claude 2 via the official API: https://openrouter.ai/docs |
Can you give a try using my library? https://github.com/st1vms/unofficial-claude2-api It was updated to support 2.1 model, it's now using curl_cffi to mimic the browser handshaking. |
Tried this and got an error: Is this something? |
I'm not sure if someone removed the Claude description on npm, but nevertheless, it broke on two of my projects and will not output anything
The text was updated successfully, but these errors were encountered: