Skip to content

Commit

Permalink
chore: prepare release 3.0.0-alpha01
Browse files Browse the repository at this point in the history
  • Loading branch information
aallam committed Jan 20, 2023
1 parent 7862377 commit 4a2d12b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 3.0.0-alpha01
> Published 20 Jan 2023
### Added
* DSL builder functions to create requests
* `Completions` and `Edit`: add `usage` to the responses
* `Files`: add `download` and `delete` functions

### Changed
* `FileSource` and [okio](https://square.github.io/okio/) for I/O operations (e.g. files, images).
* `Embeddings`: response changed to `EmbeddingResponse` to include `usage`.

# 2.1.2
> Published 11 Jan 2023
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ val images = openAI.imageURL( // or openAI.imageJSON
<summary><strong>Create embeddings</strong></summary>

````kotlin
val embeddings: List<Embedding> = openAI.embeddings(
val embeddings = openAI.embeddings(
request = EmbeddingRequest(
model = ModelId("text-similarity-babbage-001"),
input = listOf("The food was delicious and the waiter...")
Expand All @@ -184,7 +184,7 @@ val embeddings: List<Embedding> = openAI.embeddings(
<summary><strong>List files</strong></summary>

````kotlin
val files: List<File> = openAI.files()
val files = openAI.files()
````

</details>
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kotlin.js.compiler=ir

# Lib
GROUP=com.aallam.openai
VERSION_NAME=2.1.2
VERSION_NAME=3.0.0-alpha01

# OSS
SONATYPE_HOST=DEFAULT
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ ulid = { group = "com.aallam.ulid", name = "ulid-kotlin", version = "1.2.0" }
kotlin-multiplaform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kotlinx-binary-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.12.1" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.23.1" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.23.2" }
spotless = { id = "com.diffplug.gradle.spotless", version = "6.12.1" }
dokka = { id = "org.jetbrains.dokka", version = "1.7.20" }
2 changes: 1 addition & 1 deletion openai-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ kotlin {
dependencies {
api(projects.openaiCore)
api(libs.coroutines.core)
api(libs.okio)
implementation(libs.serialization.json)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.logging)
implementation(libs.ktor.client.auth)
implementation(libs.ktor.client.content.negotiation)
implementation(libs.ktor.client.serialization.json)
implementation(libs.okio)
}
}
val commonTest by getting {
Expand Down
2 changes: 1 addition & 1 deletion openai-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ kotlin {
}
val commonMain by getting {
dependencies {
implementation(libs.okio)
api(libs.okio)
implementation(libs.serialization.core)
}
}
Expand Down

0 comments on commit 4a2d12b

Please sign in to comment.