Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.11.8"
".": "0.11.9"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.11.9 (2025-01-21)

Full Changelog: [v0.11.8...v0.11.9](https://github.com/openai/openai-java/compare/v0.11.8...v0.11.9)

### Bug Fixes

* **client:** make service impl constructors internal ([#141](https://github.com/openai/openai-java/issues/141)) ([da35557](https://github.com/openai/openai-java/commit/da35557895e233dd5e490e139043faad92173782))

## 0.11.8 (2025-01-17)

Full Changelog: [v0.11.7...v0.11.8](https://github.com/openai/openai-java/compare/v0.11.7...v0.11.8)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/0.11.8)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/0.11.8/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/0.11.8)
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/0.11.9)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/0.11.9/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/0.11.8)

<!-- x-release-please-end -->

Expand All @@ -31,7 +31,7 @@ The REST API documentation can be found on [platform.openai.com](https://platfo
<!-- x-release-please-start-version -->

```kotlin
implementation("com.openai:openai-java:0.11.8")
implementation("com.openai:openai-java:0.11.9")
```

#### Maven
Expand All @@ -40,7 +40,7 @@ implementation("com.openai:openai-java:0.11.8")
<dependency>
<groupId>com.openai</groupId>
<artifactId>openai-java</artifactId>
<version>0.11.8</version>
<version>0.11.9</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.openai"
version = "0.11.8" // x-release-please-version
version = "0.11.9" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import com.openai.models.BatchRetrieveParams
import java.util.concurrent.CompletableFuture

class BatchServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BatchServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.openai.services.async.beta.VectorStoreServiceAsync
import com.openai.services.async.beta.VectorStoreServiceAsyncImpl

class BetaServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BetaServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.openai.services.async.chat.CompletionServiceAsync
import com.openai.services.async.chat.CompletionServiceAsyncImpl

class ChatServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ChatServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import com.openai.models.CompletionCreateParams
import java.util.concurrent.CompletableFuture

class CompletionServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : CompletionServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import com.openai.models.EmbeddingCreateParams
import java.util.concurrent.CompletableFuture

class EmbeddingServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : EmbeddingServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import com.openai.models.FileRetrieveParams
import java.util.concurrent.CompletableFuture

class FileServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : FileServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.openai.services.async.fineTuning.JobServiceAsync
import com.openai.services.async.fineTuning.JobServiceAsyncImpl

class FineTuningServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : FineTuningServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import com.openai.models.ImagesResponse
import java.util.concurrent.CompletableFuture

class ImageServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ImageServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import com.openai.models.ModelRetrieveParams
import java.util.concurrent.CompletableFuture

class ModelServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ModelServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import com.openai.models.ModerationCreateResponse
import java.util.concurrent.CompletableFuture

class ModerationServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ModerationServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import com.openai.services.async.uploads.PartServiceAsyncImpl
import java.util.concurrent.CompletableFuture

class UploadServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : UploadServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import com.openai.models.BetaAssistantUpdateParams
import java.util.concurrent.CompletableFuture

class AssistantServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : AssistantServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import com.openai.services.async.beta.threads.RunServiceAsyncImpl
import java.util.concurrent.CompletableFuture

class ThreadServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ThreadServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import com.openai.services.async.beta.vectorStores.FileServiceAsyncImpl
import java.util.concurrent.CompletableFuture

class VectorStoreServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : VectorStoreServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import com.openai.models.MessageDeleted
import java.util.concurrent.CompletableFuture

class MessageServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : MessageServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import com.openai.services.async.beta.threads.runs.StepServiceAsyncImpl
import java.util.concurrent.CompletableFuture

class RunServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : RunServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.openai.models.RunStep
import java.util.concurrent.CompletableFuture

class StepServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : StepServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import com.openai.models.VectorStoreFileBatch
import java.util.concurrent.CompletableFuture

class FileBatchServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : FileBatchServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.openai.models.VectorStoreFileDeleted
import java.util.concurrent.CompletableFuture

class FileServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : FileServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import com.openai.models.ChatCompletionCreateParams
import java.util.concurrent.CompletableFuture

class CompletionServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : CompletionServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import com.openai.services.async.fineTuning.jobs.CheckpointServiceAsyncImpl
import java.util.concurrent.CompletableFuture

class JobServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : JobServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import com.openai.models.FineTuningJobCheckpointListParams
import java.util.concurrent.CompletableFuture

class CheckpointServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : CheckpointServiceAsync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ package com.openai.services.async.uploads
import com.openai.core.ClientOptions

class PartServiceAsyncImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : PartServiceAsync
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.openai.models.BatchListParams
import com.openai.models.BatchRetrieveParams

class BatchServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BatchService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.openai.services.blocking.beta.VectorStoreService
import com.openai.services.blocking.beta.VectorStoreServiceImpl

class BetaServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : BetaService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.openai.services.blocking.chat.CompletionService
import com.openai.services.blocking.chat.CompletionServiceImpl

class ChatServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ChatService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import com.openai.models.Completion
import com.openai.models.CompletionCreateParams

class CompletionServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : CompletionService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.openai.models.CreateEmbeddingResponse
import com.openai.models.EmbeddingCreateParams

class EmbeddingServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : EmbeddingService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.openai.models.FileObject
import com.openai.models.FileRetrieveParams

class FileServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : FileService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.openai.services.blocking.fineTuning.JobService
import com.openai.services.blocking.fineTuning.JobServiceImpl

class FineTuningServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : FineTuningService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.openai.models.ImageGenerateParams
import com.openai.models.ImagesResponse

class ImageServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ImageService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.openai.models.ModelListParams
import com.openai.models.ModelRetrieveParams

class ModelServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ModelService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import com.openai.models.ModerationCreateParams
import com.openai.models.ModerationCreateResponse

class ModerationServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ModerationService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.openai.services.blocking.uploads.PartService
import com.openai.services.blocking.uploads.PartServiceImpl

class UploadServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : UploadService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.openai.models.BetaAssistantRetrieveParams
import com.openai.models.BetaAssistantUpdateParams

class AssistantServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : AssistantService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import com.openai.services.blocking.beta.threads.RunService
import com.openai.services.blocking.beta.threads.RunServiceImpl

class ThreadServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : ThreadService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import com.openai.services.blocking.beta.vectorStores.FileService
import com.openai.services.blocking.beta.vectorStores.FileServiceImpl

class VectorStoreServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : VectorStoreService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.openai.models.Message
import com.openai.models.MessageDeleted

class MessageServiceImpl
constructor(
internal constructor(
private val clientOptions: ClientOptions,
) : MessageService {

Expand Down
Loading
Loading