File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Original file line number Diff line number Diff line change
1
+ ![ version] ( https://img.shields.io/bintray/v/theokanning/openai-gpt3-java/api )
1
2
# OpenAI-Java
2
3
Java libraries for using OpenAI's GPT-3 api.
3
4
4
5
Includes the following artifacts:
5
6
- ` api ` : request/response POJOs for the GPT-3 engine, completion, and search APIs.
6
- - ` client ` : a basic retrofit client for the GPT-3 endpoints
7
+ - ` client ` : a basic retrofit client for the GPT-3 endpoints, includes the ` api ` module
7
8
8
9
as well as an example project using the client.
9
10
10
11
## Usage
12
+
13
+ ### Importing into a gradle project
14
+ ` implementation 'com.theokanning.openai-gpt3-java:app:<version>' `
15
+ or
16
+ ` implementation 'com.theokanning.openai-gpt3-java:client:<version>' `
17
+
11
18
### Using OpenAiService
12
19
If you're looking for the fastest solution, import the ` client ` and use [ OpenAiService] ( client/src/main/java/openai/OpenAiService.java ) .
13
20
```
@@ -36,4 +43,4 @@ export OPENAI_TOKEN="sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
36
43
```
37
44
38
45
## License
39
- Published under the MIT License
46
+ Published under the MIT License
You can’t perform that action at this time.
0 commit comments