It's time for you to embrace chatgpt

As the popularity of chatgpt continues to rise, chatgpt has been widely used in various industries. Many people feel that their status is threatened. Some people predict that chatgpt will replace 80% of programmers' jobs. I have also used chatgpt for several months, and I have to Said it was really awesome. I even used it to write a python chat script (I am just a small front-end and only know a little JS).

Function iteration

1.0 Randomly select a record from the current chat list and send it randomly at a random time. Multiple chat channels can be added.

1.1 Open chatgpt and contact the current chat list to reply (since it is not a paid version, the content of the reply is too AI and is temporarily hidden by me)

1.2 Connect to a certain financial news API and send it regularly

1.3 Connect to a platform to obtain the latest price splicing statement and send it

1.4 Add a custom statement array and encapsulate method calls

1.5 Add a switch to control whether to enable the above functions, and add a probability calling method to control the probability of sending a message type each time; a new field controls the time range of each channel sent

At first it was for chatting to gain experience, but then I felt that the product needed to be optimized so that others wouldn’t find out that I was a robot, so I slowly optimized it. After finishing it, I did feel a certain sense of accomplishment. I wasn’t very familiar with py at first, so if you don’t understand anything, just ask. chatgpt, he was also very enthusiastic in answering questions, which cleared away all my doubts, and I also learned a lot of knowledge.

New things will inevitably defeat old things, and the future of development is bright.

I digress. In fact, today I want to introduce a vscode plug-in based on chatgpt, which can greatly improve development efficiency.

The name is ChatGPT - Genie AI, which is equivalent to transplanting chatgpt into vscode, and also encapsulates some commonly used questioning methods.

 

 As long as you right-click on the code, you can perform operations on the selected code.

1. Test

2. Find BUGs

3. Optimize code

4. Explain the code

5. Add comments to the code

6. Complete the code

7. Customize question content

Here is an installation tutorial

First you need to have a chatgpt account, and then get his api-key. I believe everyone has an account. If not, you can buy one or register yourself. To register, you can refer to this article. The latest ChatGPT step-by-step registration tutorial in 23 years (nanny level).   I also wrote a registration tutorial, but it failed to pass the review. It may involve Sensitive content.

Then you need a software for roaming around the world (very sensitive), which is needed for the chatgpt interface.

1. Open chatgpt to get the apikey URL, log in to your account, switch to the key menu, create a KEY, remember to copy and save   https://platform.openai.com/account/api-keys

2. Open the vscode search plug-in chatgpt, find it, install it, and then it will pop up a box asking you to fill in the apikey, fill in the key you just saved and press Enter

 

 

3. Since this is developed by foreigners, we need to set up Chinese settings for several shortcut questions. Click on the settings icon of the plug-in.

  1. Add Chinese comments to the code below (Add Comments)
  2. Test the code below and tell me the problem and solution (Add Tests)
  3. Complete the following code (Complete Code)
  4. Explain the following code (Explain)
  5. Find problems and reasons that may occur with the following code (Find Problems)
  6. Optimize the following code to the greatest extent and tell me why (Optimize)

The Chinese sentences are borrowed from, you can optimize  the front-end development tool yourself - ChatGPT_Front-end Paper Plane's Blog-CSDN Blog

4. You can start using it happily. Right-click on the code.

From now on, there will be no more junk code. If you are not satisfied with the answer, you can continue to interact with him in the chat box. Of course, there may also be problems with the chatgpt code. Remember to test it yourself after replacing it!

  

 If you have any other questions, please send me a private message

Guess you like

Origin blog.csdn.net/CrazBarry/article/details/130729343