Skip to content

Commit b876b1c

Browse files
committed
chore: prepare release 3.4.0
1 parent 4c08949 commit b876b1c

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

.github/workflows/publish-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: gradle/gradle-build-action@v2
4444

4545
- name: Upload Artifacts
46-
run: ./gradlew publish
46+
run: ./gradlew publishAllPublicationsToMavenCentral
4747
env:
4848
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
4949
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: gradle/gradle-build-action@v2
2525

2626
- name: Upload Artifacts
27-
run: ./gradlew clean publish --no-parallel --stacktrace
27+
run: ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache
2828
env:
2929
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
3030
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# Unreleased
1+
# 3.4.0
22

33
### Added
44
- Introduced `Parameters.Empty` for functions without parameters.
55
- Added `File.statusDetails` for retrieving file status details.
66
- `HyperParams` new fields: `computeClassificationMetrics`, `classificationNClasses` and `classificationPositiveClass`.
7+
- **Moderation**: update categories and scores.
78

89
### Removed
9-
- Removed beta status from the chat and audio features.
10+
- Removed *beta* status from the chat and audio features.
1011

1112
### Deprecated
1213
- `completions` is deprecated.
@@ -15,12 +16,13 @@
1516
### Breaking Changes
1617
- **Audio**: Updated `TranscriptionRequest`'s `responseFormat` type to `AudioResponseFormat`.
1718
- **Fine Tune**: set `HyperParams.learningRateMultiplier` to be non-nullable.
19+
- **Edit**: `Choice.finishReason` type to `FinishReason`.
1820
- **Chat**: Multiple changes have been implemented:
19-
- Modified `ChatChoice.finishReason`, `ChatChunk.finishReason`, and `Choice.finishReason` types to `FinishReason`.
2021
- Set `index`, `message`, and `finishReason` fields in `ChatChoice` to be non-nullable.
2122
- Set `index`, `delta`, and `finishReason` fields in `ChatChunk` to be non-nullable.
2223
- Set `ChatCompletionFunction.parameters` to be non-nullable.
2324
- In `FunctionCall`, set `name`, `arguments`, and `argumentsAsJson()` to be non-nullable.
25+
- Modified `ChatChoice.finishReason` and `ChatChunk.finishReason` types to `FinishReason`.
2426

2527
# 3.3.2
2628
> Published 21 Jul 2023

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repositories {
1717
}
1818
1919
dependencies {
20-
implementation "com.aallam.openai:openai-client:3.3.0"
20+
implementation "com.aallam.openai:openai-client:3.4.0"
2121
}
2222
```
2323

@@ -30,7 +30,7 @@ Alternatively, you can use [openai-client-bom](/openai-client-bom) by adding th
3030
```groovy
3131
dependencies {
3232
// import Kotlin API client BOM
33-
implementation platform('com.aallam.openai:openai-client-bom:3.3.0')
33+
implementation platform('com.aallam.openai:openai-client-bom:3.4.0')
3434
3535
// define dependencies without versions
3636
implementation 'com.aallam.openai:openai-client'

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ kotlin.js.compiler=ir
55

66
# Lib
77
GROUP=com.aallam.openai
8-
VERSION_NAME=3.4.0-SNAPSHOT
8+
VERSION_NAME=3.4.0
99

1010
# OSS
1111
SONATYPE_HOST=DEFAULT
1212
RELEASE_SIGNING_ENABLED=true
13+
SONATYPE_AUTOMATIC_RELEASE=true
1314

1415
# POM
1516
POM_DESCRIPTION=OpenAI API Kotlin Client

openai-core/src/commonMain/kotlin/com.aallam.openai.api/completion/Choice.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public data class Choice(
3232
public val logprobs: Logprobs? = null,
3333

3434
/**
35-
* The reason why GPT-3 stopped generating, for example "length".
35+
* The reason the model stopped generating tokens. This will be [FinishReason.Stop] if the model hit a natural stop
36+
* point or a provided stop sequence, or [FinishReason.Length] if the maximum number of tokens specified in the
37+
* request was reached.
3638
*/
3739
@SerialName("finish_reason")
3840
public val finishReason: FinishReason,

0 commit comments

Comments
 (0)