asleepyfish/chatgpt
asleepyfish/chatgpt has 262 GitHub stars and 65 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-25 04:37 UTC. Last push 2023-12-28.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
实现可连续对话和流式输出的ChatGPT API(基于SpringBoot和Vue实现流式输出)
Developer ToolsREADME_en.md
Original
📦 ChatGPT
#1. create Completion
Provides the tool class OpenAiUtils, which provides related methods for calling.
The simplest way to use it is:
OpenAiUtils.createCompletion(prompt);
The input parameter prompt is the string of the input question.
A common static method is also provided.
public static List<String> createCompletion(CompletionRequest completionRequest) {...}
The input parameter CompletionRequest contains some adjustable parameters of the model.
There are also multiple static methods to choose from in the OpenAiUtils class, which can be viewed by yourself.
The return parameter of the above method is a list because the adjustment parameter returns the answer n to return multiple different answers at once (n is a parameter in the CompletionRequest class).
#2. Create Image You can simply use the following code to generate some images
OpenAiUtils.createImage(prompt);
As with createCompletion, some static methods are provided, which you can consult.
A common static method is also provided.
public static List<String> createImage(CreateImageRequest createImageRequest) {...}
#3. Download Image use this method you can directly download the image that you describe
OpenAiUtils.downloadImage(prompt, response);
A common static method is also provided.
public static void downloadImage(CreateImageRequest createImageRequest, OutputStream os) {...}
Explore related projects
Loading…