Skip to content

Commit 2c2b193

Browse files
committed
chore: prepare release 2.1.0
1 parent f3f8e80 commit 2c2b193

File tree

4 files changed

+1044
-451
lines changed

4 files changed

+1044
-451
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 2.1.0
2+
> Published 14 Dec 2022
3+
4+
### Added
5+
* [Images](https://beta.openai.com/docs/api-reference/images) implementation (#68)
6+
* Http timeout configuration (#71)
7+
8+
### Changed
9+
* Update Kotlin to `1.7.20`
10+
* Update Kotlin serialization to `1.4.1`
11+
* Update Ktor `2.1.3`
12+
113
# 2.0.0
214
> Published 20 Aug 2022
315

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kotlin.js.compiler=ir
55

66
# Lib
77
GROUP=com.aallam.openai
8-
VERSION_NAME=2.0.0
8+
VERSION_NAME=2.1.0
99

1010
# OSS
1111
SONATYPE_HOST=DEFAULT

openai-client/api/openai-client.api

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
1-
public abstract interface class com/aallam/openai/client/Answers {
2-
public abstract fun answers (Lcom/aallam/openai/api/answer/AnswerRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
3-
}
4-
5-
public abstract interface class com/aallam/openai/client/Classifications {
6-
public abstract fun classifications (Lcom/aallam/openai/api/classification/ClassificationRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
7-
}
8-
91
public abstract interface class com/aallam/openai/client/Completions {
10-
public abstract fun completion-oLuQndg (Ljava/lang/String;Lcom/aallam/openai/api/completion/CompletionRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
11-
public abstract fun completions-hf_GjgE (Ljava/lang/String;Lcom/aallam/openai/api/completion/CompletionRequest;)Lkotlinx/coroutines/flow/Flow;
2+
public abstract fun completion (Lcom/aallam/openai/api/completion/CompletionRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
3+
public abstract fun completions (Lcom/aallam/openai/api/completion/CompletionRequest;)Lkotlinx/coroutines/flow/Flow;
124
}
135

14-
public final class com/aallam/openai/client/Completions$DefaultImpls {
15-
public static synthetic fun completion-oLuQndg$default (Lcom/aallam/openai/client/Completions;Ljava/lang/String;Lcom/aallam/openai/api/completion/CompletionRequest;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
16-
public static synthetic fun completions-hf_GjgE$default (Lcom/aallam/openai/client/Completions;Ljava/lang/String;Lcom/aallam/openai/api/completion/CompletionRequest;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow;
6+
public abstract interface class com/aallam/openai/client/Edits {
7+
public abstract fun edit (Lcom/aallam/openai/api/edits/EditsRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
178
}
189

19-
public abstract interface class com/aallam/openai/client/Engines {
20-
public abstract fun engine-hf_GjgE (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
21-
public abstract fun engines (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
10+
public abstract interface class com/aallam/openai/client/Embeddings {
11+
public abstract fun embeddings (Lcom/aallam/openai/api/embedding/EmbeddingRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2212
}
2313

2414
public abstract interface class com/aallam/openai/client/Files {
@@ -28,14 +18,43 @@ public abstract interface class com/aallam/openai/client/Files {
2818
public abstract fun files (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
2919
}
3020

31-
public abstract interface class com/aallam/openai/client/OpenAI : com/aallam/openai/client/Answers, com/aallam/openai/client/Classifications, com/aallam/openai/client/Completions, com/aallam/openai/client/Engines, com/aallam/openai/client/Files, com/aallam/openai/client/Searches {
21+
public abstract interface class com/aallam/openai/client/FineTunes {
22+
public abstract fun cancel-zS1XsbI (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
23+
public abstract fun delete-Q3EJpKE (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
24+
public abstract fun fineTune (Lcom/aallam/openai/api/finetune/FineTuneRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
25+
public abstract fun fineTune-zS1XsbI (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
26+
public abstract fun fineTuneEvents-zS1XsbI (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
27+
public abstract fun fineTuneEventsFlow-zSIMr1o (Ljava/lang/String;)Lkotlinx/coroutines/flow/Flow;
28+
public abstract fun fineTunes (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
29+
}
30+
31+
public abstract interface class com/aallam/openai/client/Images {
32+
public abstract fun image (Lcom/aallam/openai/api/image/ImageCreationJSON;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
33+
public abstract fun image (Lcom/aallam/openai/api/image/ImageCreationURL;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
34+
public abstract fun image (Lcom/aallam/openai/api/image/ImageEditJSON;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
35+
public abstract fun image (Lcom/aallam/openai/api/image/ImageEditURL;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
36+
public abstract fun image (Lcom/aallam/openai/api/image/ImageVariationJSON;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
37+
public abstract fun image (Lcom/aallam/openai/api/image/ImageVariationURL;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
38+
}
39+
40+
public abstract interface class com/aallam/openai/client/Models {
41+
public abstract fun model-Q3EJpKE (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
42+
public abstract fun models (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
43+
}
44+
45+
public abstract interface class com/aallam/openai/client/Moderations {
46+
public abstract fun moderations (Lcom/aallam/openai/api/moderation/ModerationRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
47+
}
48+
49+
public abstract interface class com/aallam/openai/client/OpenAI : com/aallam/openai/client/Completions, com/aallam/openai/client/Edits, com/aallam/openai/client/Embeddings, com/aallam/openai/client/Files, com/aallam/openai/client/FineTunes, com/aallam/openai/client/Images, com/aallam/openai/client/Models, com/aallam/openai/client/Moderations {
3250
}
3351

3452
public final class com/aallam/openai/client/OpenAIConfig {
35-
public fun <init> (Ljava/lang/String;Lcom/aallam/openai/api/logging/LogLevel;Lcom/aallam/openai/api/logging/Logger;)V
36-
public synthetic fun <init> (Ljava/lang/String;Lcom/aallam/openai/api/logging/LogLevel;Lcom/aallam/openai/api/logging/Logger;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
53+
public fun <init> (Ljava/lang/String;Lcom/aallam/openai/api/logging/LogLevel;Lcom/aallam/openai/api/logging/Logger;Lcom/aallam/openai/api/http/Timeout;)V
54+
public synthetic fun <init> (Ljava/lang/String;Lcom/aallam/openai/api/logging/LogLevel;Lcom/aallam/openai/api/logging/Logger;Lcom/aallam/openai/api/http/Timeout;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
3755
public final fun getLogLevel ()Lcom/aallam/openai/api/logging/LogLevel;
3856
public final fun getLogger ()Lcom/aallam/openai/api/logging/Logger;
57+
public final fun getTimeout ()Lcom/aallam/openai/api/http/Timeout;
3958
public final fun getToken ()Ljava/lang/String;
4059
}
4160

@@ -44,7 +63,3 @@ public final class com/aallam/openai/client/OpenAIKt {
4463
public static final fun OpenAI (Ljava/lang/String;)Lcom/aallam/openai/client/OpenAI;
4564
}
4665

47-
public abstract interface class com/aallam/openai/client/Searches {
48-
public abstract fun search-oLuQndg (Ljava/lang/String;Lcom/aallam/openai/api/search/SearchRequest;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
49-
}
50-

0 commit comments

Comments
 (0)