Skip to content

Commit

Permalink
2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CJCrafter committed Nov 13, 2023
1 parent 7e14398 commit c019530
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 41 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/readme-version.yml

This file was deleted.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,25 @@ An unofficial, easy-to-use Java/Kotlin OpenAI API for ChatGPT, Text Completions,
* Streaming support via `OpenAI#streamChatCompletion`
* Functions support, check out the [java examples](https://github.com/CJCrafter/ChatGPT-Java-API/blob/master/examples/src/main/java/chat/StreamChatCompletionFunction.java#L49) and [kotlin examples](https://github.com/CJCrafter/ChatGPT-Java-API/blob/master/examples/src/main/kotlin/chat/StreamChatCompletionFunction.kt#L37)
* [Azure OpenAI](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference) support via `AzureOpenAI` class
* [Embeddings](https://platform.openai.com/docs/api-reference/embeddings) (New!)
* [Files](https://platform.openai.com/docs/api-reference/files) (New!)

## Installation
For Kotlin DSL (`build.gradle.kts`), add this to your dependencies block:
```kotlin
dependencies {
implementation("com.cjcrafter:openai:2.0.1")
implementation("com.cjcrafter:openai:2.0.2")
}
```
For Maven projects, add this to your `pom.xml` file in the `<dependencies>` block:
```xml
<dependency>
<groupId>com.cjcrafter</groupId>
<artifactId>openai</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
</dependency>
```
See the [maven repository](https://central.sonatype.com/artifact/com.cjcrafter/openai/2.0.1) for gradle/ant/etc.
See the [maven repository](https://central.sonatype.com/artifact/com.cjcrafter/openai/2.0.2) for gradle/ant/etc.


## Working Example
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.github.breadmoirai.githubreleaseplugin.GithubReleaseTask

group = "com.cjcrafter"
version = "2.0.1"
version = "2.0.2"

plugins {
`java-library`
Expand Down

0 comments on commit c019530

Please # to comment.