oldweipro / claude-to-chatgpt

Claude 聊天接口适配到 OpenAI API 标准接口。
MIT License
102 stars 18 forks source link

这两天调用接口,连续封了多个账号 #20

Open fan1jun opened 11 months ago

fan1jun commented 11 months ago

如题,应该是调用接口有什么特征泄漏,望大佬更新

spammenotinoz commented 11 months ago

I can't answer your question, other than from what I see the User-Agent is "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36")", otherwise looks pretty standard.

Additional items that can get your account blocked;

Luck plays a big part....

fan1jun commented 11 months ago

I can't answer your question, other than from what I see the User-Agent is "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36")", otherwise looks pretty standard.

Additional items that can get your account blocked;

  • Using a proxy (if the proxy is either not passing through\faking the required headers, many packets can arrive as bad, contributing to a block)
  • High volume of requests
  • Multiple Accounts from the same IP address
  • VPN or CloudFlare
  • Flagged queries
  • Character sets \ queries that imply you may not be accessing the service in either the US or London.

Luck plays a big part....

因为是docker部署的,也不太好伪装user-agent啊,docker内挂了代理,之前一直都只用一个账号,也没封,但是这几天就封了4个账号了

spammenotinoz commented 11 months ago

Hi, not trying to be argumentative but by default that is not how docker networking works. By default Docker shares the host network adapter, as such any packet capture or data analysis of outbound traffic performed off the device makes it extremely difficult to identify if the source was a container, as all packets come from the host with no markers of docker. Docker does NOT set a user-agent, just like an application running out-side of docker, the application is responsible for setting the user-agent. For in-bound traffic, Deep Packet Inspection particularly relating to TLS may provide some "hints" \ "indications" of containerization, but that's it.

You may need to look at what "prompts" your users are submitting.

jorejia commented 10 months ago

遇到同样的问题使用这个被封号