Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 70019fa

Browse filesBrowse files
authored
Update Readme
Added version badge and download instructions
1 parent fe48e8c commit 70019fa
Copy full SHA for 70019fa

File tree

Expand file treeCollapse file tree

1 file changed

+9
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-2
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1+
![version](https://img.shields.io/bintray/v/theokanning/openai-gpt3-java/api)
12
# OpenAI-Java
23
Java libraries for using OpenAI's GPT-3 api.
34

45
Includes the following artifacts:
56
- `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
78

89
as well as an example project using the client.
910

1011
## 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+
1118
### Using OpenAiService
1219
If you're looking for the fastest solution, import the `client` and use [OpenAiService](client/src/main/java/openai/OpenAiService.java).
1320
```
@@ -36,4 +43,4 @@ export OPENAI_TOKEN="sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
3643
```
3744

3845
## License
39-
Published under the MIT License
46+
Published under the MIT License

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.