|
1 | | -[](https://github.com/launchableinc/openai-java/packages) |
| 1 | + |
2 | 2 |
|
3 | 3 | > ⚠️OpenAI has deprecated all Engine-based APIs. |
4 | 4 | > See [Deprecated Endpoints](https://github.com/launchableinc/openai-java#deprecated-endpoints) below |
@@ -38,21 +38,41 @@ as well as an example project using the service. |
38 | 38 |
|
39 | 39 | ## Importing |
40 | 40 |
|
| 41 | +This library is available through [Maven Central](https://central.sonatype.com/search?q=g:com.launchableinc.openai-java) - **no authentication required!** |
| 42 | + |
41 | 43 | ### Gradle |
42 | 44 |
|
43 | | -`implementation 'com.launchableinc.openai-java:<api|client|service>:<version>'` |
| 45 | +Simply add the dependency to your `build.gradle`: |
| 46 | + |
| 47 | +```gradle |
| 48 | +dependencies { |
| 49 | + implementation 'com.launchableinc.openai-java:service:0.4.1' |
| 50 | + // Or specific modules: |
| 51 | + implementation 'com.launchableinc.openai-java:api:0.4.1' |
| 52 | + implementation 'com.launchableinc.openai-java:client:0.4.1' |
| 53 | +} |
| 54 | +``` |
44 | 55 |
|
45 | 56 | ### Maven |
46 | 57 |
|
47 | | -```xml |
| 58 | +Add the dependency to your `pom.xml`: |
48 | 59 |
|
| 60 | +```xml |
| 61 | +<dependency> |
| 62 | + <groupId>com.launchableinc.openai-java</groupId> |
| 63 | + <artifactId>service</artifactId> |
| 64 | + <version>0.4.1</version> |
| 65 | +</dependency> |
| 66 | +<!-- Or specific modules --> |
49 | 67 | <dependency> |
50 | | - <groupId>com.launchableinc.openai-java</groupId> |
51 | | - <artifactId>{api|client|service}</artifactId> |
52 | | - <version>version</version> |
| 68 | + <groupId>com.launchableinc.openai-java</groupId> |
| 69 | + <artifactId>api</artifactId> |
| 70 | + <version>0.4.1</version> |
53 | 71 | </dependency> |
54 | 72 | ``` |
55 | 73 |
|
| 74 | +That's it! No additional repository configuration or authentication is needed since the library is available on Maven Central. |
| 75 | + |
56 | 76 | ## Usage |
57 | 77 |
|
58 | 78 | ### Data classes only |
|
0 commit comments