Update Readme
Added version badge and download instructions
This commit is contained in:
parent
fe48e8cfc3
commit
70019fa7bb
11
README.md
11
README.md
@ -1,13 +1,20 @@
|
|||||||
|

|
||||||
# OpenAI-Java
|
# OpenAI-Java
|
||||||
Java libraries for using OpenAI's GPT-3 api.
|
Java libraries for using OpenAI's GPT-3 api.
|
||||||
|
|
||||||
Includes the following artifacts:
|
Includes the following artifacts:
|
||||||
- `api` : request/response POJOs for the GPT-3 engine, completion, and search APIs.
|
- `api` : request/response POJOs for the GPT-3 engine, completion, and search APIs.
|
||||||
- `client` : a basic retrofit client for the GPT-3 endpoints
|
- `client` : a basic retrofit client for the GPT-3 endpoints, includes the `api` module
|
||||||
|
|
||||||
as well as an example project using the client.
|
as well as an example project using the client.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
### Importing into a gradle project
|
||||||
|
`implementation 'com.theokanning.openai-gpt3-java:app:<version>'`
|
||||||
|
or
|
||||||
|
`implementation 'com.theokanning.openai-gpt3-java:client:<version>'`
|
||||||
|
|
||||||
### Using OpenAiService
|
### Using OpenAiService
|
||||||
If you're looking for the fastest solution, import the `client` and use [OpenAiService](client/src/main/java/openai/OpenAiService.java).
|
If you're looking for the fastest solution, import the `client` and use [OpenAiService](client/src/main/java/openai/OpenAiService.java).
|
||||||
```
|
```
|
||||||
@ -36,4 +43,4 @@ export OPENAI_TOKEN="sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
|||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
Published under the MIT License
|
Published under the MIT License
|
||||||
|
Loading…
x
Reference in New Issue
Block a user