Method for integrating development environment based on GPT technology

By integrating GPT interaction functions in an integrated development environment, supporting customized propt and private deployment, the problem of developers in the existing technology that it is difficult for them to get the best experience when using ChatGPT, and a more convenient and personalized code-assisted generation solution is achieved.

CN119576303APending Publication Date: 2025-03-07TIANJIN AUTOHOME DATA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411676586.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-03-07

Smart Images

  • Figure CN119576303A_ABST
    Figure CN119576303A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of software development, and discloses a GPT technology-based method for integrating a development environment, which comprises the following processes: 1, a GPT interaction process: step 1, a user selects a code in an integrated development environment IDEA; according to the development plug-in based on the GPT technology, the tedious process of interaction with the GPT is simplified through the processing flow of automatic interaction between template cue words with functions of plug-in function explanation codes, code readability optimization, test case generation and the like and the GPT and cue word self-definition by a user; therefore, developers are helped to conveniently use gpt related functions in an integrated development environment, a convenient code related auxiliary generation scheme is provided, meanwhile, prompt cue words with built-in corresponding functions are provided, more complete information of a GPT interface is more accurately provided, the developers can automatically optimize the functions such as the prompt cue words in a plug-in, and the development efficiency is improved. Therefore, a more personalized use scheme is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of software development technology, specifically a method for an integrated development environment based on GPT technology. Background Technology

[0002] GPT models are deep neural network models trained on massive amounts of text data to learn and master general language knowledge and abilities through unsupervised, semi-supervised, or self-supervised methods. They can automatically generate a paragraph, an article, or even a piece of code based on keywords provided by the user. Since the birth of GPT technology, professionals from all walks of life have begun to try using GPT models such as ChatGPT to assist them in their production work and improve work efficiency.

[0003] Currently, most developers use ChatGPT in two main ways. The first is to open the ChatGPT webpage and manually enter prompt words and related code snippets to obtain suggestions from the large model. The second is to use the built-in prompt word templates in online plugins provided by the application market to obtain the return results after interacting with ChatGPT. However, in the first method, if developers are not proficient in using prompt words, it is difficult to obtain the best user experience. In the second method, the online plugins only support built-in templates and do not support custom templates. They also cannot modify the built-in prompt words, nor do they support common scenarios for generating test cases, and they do not provide functions such as private deployment and upgrades. Summary of the Invention

[0004] The purpose of this invention is to provide a method for an integrated development environment based on GPT technology to solve the problems mentioned in the background art.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a method for an integrated development environment based on GPT technology, comprising the following steps:

[0006] Process 1: Interaction with GPT

[0007] Step 1: The user selects code in the Integrated Development Environment (IDE).

[0008] Step 2: Users select the desired functions;

[0009] Step 3: Based on the user's selection, read the local XML file configuration corresponding to the function;

[0010] Step 4: If the user has not customized the configuration, then read the default configuration;

[0011] Step 5: Replace and assemble the templates in the configuration to form the final prompt message;

[0012] Step Six: Call the GPT interface to obtain the results;

[0013] Step 7: Stream and store the call results using SSE;

[0014] Step 2: User Adjustment of Prompt Words

[0015] Step 1: The user configures the plugin in the integrated development environment IDEA;

[0016] Step 2: The system determines whether the user has customized configurations;

[0017] Step 3: If the file does not exist, create the user's custom configuration XML file;

[0018] Step 4: Modify the prompt word template information in the user-defined configuration file;

[0019] Step 5: Mark the next system call to use the user's custom configuration;

[0020] Step 3: Private Deployment Solution Process

[0021] Step 1: Create a file storage server;

[0022] Step 2: Create the XML description file required for plugin updates;

[0023] Step 3: Upload the plugin JAR file and update description file to the file storage server;

[0024] Step 4: Update the configuration in IDEA.

[0025] Preferably, the integrated development environment IDEA described in process one can run code written in different programming languages, and the integrated development environment IDEA has an automatic code correction function.

[0026] Preferably, the code described in process one should be commented, and the code can be modified at any time according to the user's needs.

[0027] Preferably, the GPT described in process one should run in a network environment, and the GPT has code-assisted programming functionality.

[0028] Preferably, the local XML file configuration described in process one can be opened on different operating systems, and the local XML file configuration can be modified according to user needs.

[0029] Preferably, the prompt mentioned in process one has the function of establishing a corpus and semantic parsing model that conforms to user habits, and the prompt can convert the user's natural language into machine-recognizable instructions.

[0030] Preferably, the SSE described in process one has an automatic disconnection and reconnection function, and the SSE can send custom message types as needed by the user.

[0031] Preferably, the prompt word template information described in process two has multiple language versions, and the prompt word template information can be customized, modified, added, or removed.

[0032] Preferably, the file storage server described in process three has a periodic virus scanning function, and the periodic virus scanning interval is one month.

[0033] The beneficial effects of this invention are as follows:

[0034] This document presents a development plugin based on GPT technology. By simplifying the complex process of interacting with GPT through template prompts for plugin functions such as code interpretation, code readability optimization, and test case generation, along with automated interaction with GPT and user-defined prompts, it helps developers conveniently use GPT-related functions in the integrated development environment. It also provides a convenient code generation solution and built-in prompts for more accurate and complete information about the GPT interface. Furthermore, developers can optimize the prompts and other functions within the plugin to provide more personalized usage. In addition, a private deployment method allows the plugin to be deployed, updated, and used within an intranet environment. Attached Figure Description

[0035] Figure 1 This is a schematic diagram illustrating the interaction between the present invention and GPT;

[0036] Figure 2 This is a flowchart illustrating the process of adjusting prompts for users in this invention. Detailed Implementation

[0037] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0038] like Figures 1 to 2 As shown, this embodiment of the invention provides a method for an integrated development environment based on GPT technology, including the following steps:

[0039] Process 1: Interaction with GPT

[0040] Step 1: The user selects code in the integrated development environment IDEA;

[0041] Step 2: Users select the desired functions;

[0042] Step 3: Based on the user's selection, read the local XML file configuration corresponding to the function;

[0043] Step 4: If the user has not customized the configuration, then read the default configuration;

[0044] Step 5: Replace and assemble the templates in the configuration to form the final prompt message;

[0045] Step Six: Call the GPT interface to obtain the results;

[0046] Step 7: Stream and store the call results using SSE;

[0047] Step 2: User Adjustment of Prompt Words

[0048] Step 1: The user configures the plugin in the integrated development environment IDEA;

[0049] Step 2: The system determines whether the user has customized configurations;

[0050] Step 3: If the file does not exist, create the user's custom configuration XML file;

[0051] Step 4: Modify the prompt word template information in the user-defined configuration file;

[0052] Step 5: Mark the next system call to use the user's custom configuration;

[0053] Step 3: Private Deployment Solution Process

[0054] Step 1: Create a file storage server;

[0055] Step 2: Create the XML description file required for plugin updates;

[0056] Step 3: Upload the plugin JAR file and update description file to the file storage server;

[0057] Step 4: Update the configuration in IDEA.

[0058] By providing a development plugin based on GPT technology, this plugin helps developers use GPT-related functions more conveniently in integrated development environments, and offers a more convenient code-related auxiliary generation solution. Furthermore, it allows developers to customize features such as prompt words in the plugin to provide a more personalized usage solution. Through a private deployment solution, users can also use the plugin in an intranet environment.

[0059] Among them, the integrated development environment IDEA in process one can run code written in different programming languages, and the integrated development environment IDEA has an automatic code correction function.

[0060] IDEA is an integrated development environment for the Java programming language. IDEA is widely recognized as the best Java development tool, especially for its comprehensive auxiliary functions such as intelligent code assistant, JavaEE support, and various version control tools (git, svn, etc.).

[0061] The code for process one should be commented and can be modified at any time according to the user's needs.

[0062] Code comments help users understand the code, thus assisting them in modifying and customizing plugin settings.

[0063] In process one, GPT should run in a network environment and has code-assisted programming capabilities.

[0064] GPT is a deep learning-based natural language processing technique that uses large-scale pre-trained models to generate text, offering strong versatility and flexibility.

[0065] Among them, the local XML file configuration in Process 1 can be opened on different operating systems, and the local XML file configuration can be modified according to user needs.

[0066] XML is a standard and widely accepted file transfer format. Compared to JSON, which is only suitable for simple value transfer, XML has a wider range of file transfer capabilities.

[0067] Among them, the prompt in process one has the function of building a corpus and semantic parsing model that conforms to user habits. The prompt can convert the user's natural language into machine-recognizable instructions.

[0068] Prompt is a natural language processing technology that enables rapid communication between users and machines through machine parsing of natural language.

[0069] Among them, the SSE in process one has an automatic disconnection and reconnection function, and SSE can send custom message types according to user needs.

[0070] Server-Sent Events (SSE) is a simple, easy-to-use, efficient, and reliable server information push technology that can help users quickly build real-time responsive applications.

[0071] The prompt word template information for Process 2 is available in multiple languages, and the prompt word template information can be customized, modified, added, or removed.

[0072] Prompt templates help users quickly understand how to use the software, while multiple language versions help users of different languages ​​adapt quickly.

[0073] Among them, the file storage server in process three has a regular virus scanning function, with a regular virus scanning interval of one month.

[0074] Regular virus scanning ensures that the file storage server is not maliciously compromised.

[0075] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0076] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for an integrated development environment based on GPT technology, characterized in that: The following steps are involved: Process 1: Process of interacting with GPT Step 1: The user selects the code in the integrated development environment IDEA; Step 2: The user selects different required functions; Step 3: Read the local XML file configuration corresponding to the function according to the user's selection; Step 4: If the user has no customized configuration, read the default configuration; Step 5: Replace and assemble the templates in the configuration to form the final prompt word; Step 6: Call the GPT interface to obtain the result; Step 7: Stream and store the call results through SSE; Process 2: User adjustment prompt word process Step 1: The user sets up the plug-in in the integrated development environment IDEA; Step 2: The system determines whether the user has customized configuration; Step 3: Create a user-defined configuration XML file if it does not exist; Step 4: Modify the prompt word template information in the user-defined configuration file; Step 5: Mark the next system call to use the user's custom configuration; Process 3: Private deployment solution process Step 1: Create a file storage server; Step 2: Create the XML description file required for plug-in update; Step 3: Upload the plug-in jar package and update description file to the file storage server; Step 4: Update the configuration in IDEA.

2. The method of an integrated development environment based on GPT technology according to claim 1, characterized in that: The integrated development environment IDEA described in process 1 can run codes written in different programming languages, and the integrated development environment IDEA has an automatic code error correction function.

3. The method of an integrated development environment based on GPT technology according to claim 1, characterized in that: The code described in process 1 should be annotated, and the code can be modified at any time according to user needs.

4. The method of an integrated development environment based on GPT technology according to claim 1, characterized in that: The GPT described in process 1 should be run in a networked environment, and the GPT has a code-assisted programming function.

5. The method of an integrated development environment based on GPT technology according to claim 1, characterized in that: The local XML file configuration described in process 1 can be opened in different operating systems, and the local XML file configuration can be modified according to user needs.

6. The method of an integrated development environment based on GPT technology according to claim 1, characterized in that: The prompt described in process 1 has the function of establishing a corpus and a semantic parsing model that conforms to user habits, and the prompt can convert the user's natural language into machine-recognizable instructions.

7. The method of an integrated development environment based on GPT technology according to claim 1, characterized in that: The SSE described in process 1 has an automatic disconnection and reconnection function, and the SSE can send customized message types according to user needs.

8. The method of an integrated development environment based on GPT technology according to claim 1, characterized in that: The prompt word template information described in process 2 has multiple language versions, and the prompt word template information can be customized, modified, added or deleted.

9. The method of an integrated development environment based on GPT technology according to claim 1, characterized in that: The file storage server described in process three has a regular antivirus function, and the interval of the regular antivirus is one month.