Various pits on the road to privatization and deployment of ChatGPT

Chatgpt is very popular recently, and I want to use this Dongfeng to do some paid services (provide artificial intelligence question-and-answer services for web pages, applets, and apps), which is convenient for myself and others (the official API call is charged, and it is impossible to provide free services. The simplest cloud server still has fixed costs every month), and encountered many pitfalls in the process, and there are still many pitfalls for individual entrepreneurship.

  1. About ChatGPT registration

Everyone knows that ChatGPT is very unfriendly to China. For the general public, just registering will block 80% of people from the door. I also spent a lot of effort to get it done.
First of all, it must be able to surf the Internet scientifically, and it cannot be a Hong Kong node, otherwise it will be reported that the country where it is located is not supported. During this registration process, you also need a foreign virtual mobile phone number to receive the verification code, which is really frustrating. For details on how to register, please refer to this article https://www.krseo.com/zixun/1213.html . Personally, I suggest not to buy the number directly.

  1. Find a useful open source library encapsulated by chatgpt that separates the front and back ends
  1. All open source libraries are essentially official openai services. Since openai is located abroad, if you can't access the Internet scientifically, you can't even connect to the service after compiling.
  2. You need to enter your own openai api-key , which needs to be generated on the official website (record when generating, once the generation is confirmed, you will not see the specific key)
  3. The compilation environment is preferably a linux environment, otherwise there may be various inexplicable problems
  4. There are a lot of open source libraries basically search chatgpt on github, and you can find suitable open source libraries according to the language you are good at.
  5. For the open source library of WeChat's question-and-answer service, it should be noted that if it is WeChat, it is easy to block WeChat if it is used frequently, so use it with caution.
  6. Of course, the open source library may also need to do a lot of optimization, such as continuous session, drawing function, typewriter effect, and Markdown display effect may not be available, and may need to be optimized by yourself.
  1. About the choice of cloud server
  1. First of all, it must be an overseas server, it is best to choose a server in Hong Kong, and the delay is relatively low.
  2. If you want a stable monthly subscription service, the bidding instance may be unstable. I personally purchased a 4-core 8G cloud service, and the traffic is on-demand. It is about 400 a month (to be honest, it is a bit expensive), and everyone has better ones. can be recommended.
  1. domain registration
  1. Domain name registration is not simply a matter of buying a domain name, it needs to do domain name resolution (that is, bind with an ip address, otherwise there is no way to access the website directly with the domain name.
  2. The domain name needs to be filed (in China, all domain names need to be filed, if you don’t log in with any mobile phone, you can’t use WeChat payment at all, even basic access), but the cloud server for the record must be a domestic server (the cloud server is required The available period is longer than 3 months), and the previously purchased overseas servers are not eligible. After filling in the filing information, it can be done within a week without any problems (but generally it is not so easy)
  3. How to solve the conflict problem of the second point, I have also thought of some solutions at present, of course, it may not be suitable to talk about here.
  1. Some pitfalls encountered in website development

Since my main technical direction is C++, it can be said that I have a little knowledge of the back-end and front-end. I have never built a website before, and I will encounter various small problems.

  1. Mobile phone number registration requires a verification code. This can be done using Alibaba Cloud or Tencent Cloud. Of course, SMS services are charged. At the same time, the domain name of the website is required to go through ICP filing (more on this later).
  2. WeChat payment, for those who do this for the first time, the process is still very troublesome, and various certifications will torture people to death (I usually certify according to the enterprise), it is best to leave it to professional people. What enterprise certification, AppID (enterprise WeChat certification, 300 yuan), ApiV3, etc.
  1. ChatGPT renewal

When everything is normal, I also encountered a problem with the API renewal of ChatGPT. The current solution is to use a virtual overseas credit card (Visa credit cards registered in China are not available. I have tried this with a few friends, and because of this renewal fee It’s not a one-time recharge, but deducting the money in the credit card on demand, and no one wants to do this when looking for overseas friends). So honestly look for a reliable virtual credit card ( https://mp.weixin.qq.com/s/NtljpauXcVfB91ETxtStmg )

  1. Talk about the title issue of ChatGPT

To put it simply, the title is blocked because many people in China want to make money and earn poor information (at present, many people build websites that register many accounts in batches at one time. Since the official provides a quota of 18 US dollars, if you register 100 accounts at one time, it is 1800 US dollars , and then provide services to people, this method is inevitable to seal the account, openai itself also needs to make money, so there is no money to make in this way, how is it possible not to seal the account. For example, one IP registers many accounts, and one account is used by many people. possible title). The account I registered by myself has always been quiet and there is no problem.

Finally, the emergence of ChatGPT is indeed no less than a new industrial revolution. Only by keeping up with the trend of the times can we not be eliminated by the times.

Guess you like

Origin blog.csdn.net/qq_33377547/article/details/130097022