From a1a0c4c038697a78c8ca68af823836989d569512 Mon Sep 17 00:00:00 2001 From: Mouaad Aallam Date: Sat, 3 Jun 2023 22:25:03 +0200 Subject: [PATCH] chore: prepare release 3.2.5 --- CHANGELOG.md | 7 +++++++ README.md | 4 ++-- gradle.properties | 2 +- openai-client/api/openai-client.api | 18 +++++++++++++++--- 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff2b0df7..aca5a013 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 3.2.5 +> Published 03 Jun 2023 + +### Added +- Add `OpenAIHost` builder for Azure (#196) +- Support of `OpenAIHost` with a base path (#196) + # 3.2.4 > Published 21 May 2023 diff --git a/README.md b/README.md index 50e1fc11..fc7ac3cd 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ repositories { } dependencies { - implementation "com.aallam.openai:openai-client:3.2.4" + implementation "com.aallam.openai:openai-client:3.2.5" } ``` @@ -30,7 +30,7 @@ Alternatively, you can use [openai-client-bom](/openai-client-bom) by adding th ```groovy dependencies { // import Kotlin API client BOM - implementation platform('com.aallam.openai:openai-client-bom:3.2.4') + implementation platform('com.aallam.openai:openai-client-bom:3.2.5') // define dependencies without versions implementation 'com.aallam.openai:openai-client' diff --git a/gradle.properties b/gradle.properties index c9695916..bb152cfb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ kotlin.js.compiler=ir # Lib GROUP=com.aallam.openai -VERSION_NAME=3.2.4 +VERSION_NAME=3.2.5 # OSS SONATYPE_HOST=DEFAULT diff --git a/openai-client/api/openai-client.api b/openai-client/api/openai-client.api index 00dfc994..5eec314c 100644 --- a/openai-client/api/openai-client.api +++ b/openai-client/api/openai-client.api @@ -48,6 +48,15 @@ public abstract interface class com/aallam/openai/client/Images { public abstract fun imageURL (Lcom/aallam/openai/api/image/ImageVariation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } +public final class com/aallam/openai/client/LoggingConfig { + public fun ()V + public fun (Lcom/aallam/openai/api/logging/LogLevel;Lcom/aallam/openai/api/logging/Logger;Z)V + public synthetic fun (Lcom/aallam/openai/api/logging/LogLevel;Lcom/aallam/openai/api/logging/Logger;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun getLogLevel ()Lcom/aallam/openai/api/logging/LogLevel; + public final fun getLogger ()Lcom/aallam/openai/api/logging/Logger; + public final fun getSanitize ()Z +} + public abstract interface class com/aallam/openai/client/Models { public abstract fun model-Q3EJpKE (Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public abstract fun models (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; @@ -63,10 +72,11 @@ public abstract interface class com/aallam/openai/client/OpenAI : com/aallam/ope public final class com/aallam/openai/client/OpenAIConfig { public fun (Ljava/lang/String;Lcom/aallam/openai/api/logging/LogLevel;Lcom/aallam/openai/api/logging/Logger;Lcom/aallam/openai/api/http/Timeout;Ljava/lang/String;Ljava/util/Map;Lcom/aallam/openai/client/OpenAIHost;Lcom/aallam/openai/client/ProxyConfig;Lcom/aallam/openai/client/RetryStrategy;)V public synthetic fun (Ljava/lang/String;Lcom/aallam/openai/api/logging/LogLevel;Lcom/aallam/openai/api/logging/Logger;Lcom/aallam/openai/api/http/Timeout;Ljava/lang/String;Ljava/util/Map;Lcom/aallam/openai/client/OpenAIHost;Lcom/aallam/openai/client/ProxyConfig;Lcom/aallam/openai/client/RetryStrategy;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ljava/lang/String;Lcom/aallam/openai/client/LoggingConfig;Lcom/aallam/openai/api/http/Timeout;Ljava/lang/String;Ljava/util/Map;Lcom/aallam/openai/client/OpenAIHost;Lcom/aallam/openai/client/ProxyConfig;Lcom/aallam/openai/client/RetryStrategy;)V + public synthetic fun (Ljava/lang/String;Lcom/aallam/openai/client/LoggingConfig;Lcom/aallam/openai/api/http/Timeout;Ljava/lang/String;Ljava/util/Map;Lcom/aallam/openai/client/OpenAIHost;Lcom/aallam/openai/client/ProxyConfig;Lcom/aallam/openai/client/RetryStrategy;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun getHeaders ()Ljava/util/Map; public final fun getHost ()Lcom/aallam/openai/client/OpenAIHost; - public final fun getLogLevel ()Lcom/aallam/openai/api/logging/LogLevel; - public final fun getLogger ()Lcom/aallam/openai/api/logging/Logger; + public final fun getLogging ()Lcom/aallam/openai/client/LoggingConfig; public final fun getOrganization ()Ljava/lang/String; public final fun getProxy ()Lcom/aallam/openai/client/ProxyConfig; public final fun getRetry ()Lcom/aallam/openai/client/RetryStrategy; @@ -83,12 +93,14 @@ public final class com/aallam/openai/client/OpenAIHost { } public final class com/aallam/openai/client/OpenAIHost$Companion { + public final fun azure (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/aallam/openai/client/OpenAIHost; public final fun getOpenAI ()Lcom/aallam/openai/client/OpenAIHost; } public final class com/aallam/openai/client/OpenAIKt { public static final fun OpenAI (Lcom/aallam/openai/client/OpenAIConfig;)Lcom/aallam/openai/client/OpenAI; - public static final fun OpenAI (Ljava/lang/String;)Lcom/aallam/openai/client/OpenAI; + public static final fun OpenAI (Ljava/lang/String;Lcom/aallam/openai/client/LoggingConfig;Lcom/aallam/openai/api/http/Timeout;Ljava/lang/String;Ljava/util/Map;Lcom/aallam/openai/client/OpenAIHost;Lcom/aallam/openai/client/ProxyConfig;Lcom/aallam/openai/client/RetryStrategy;)Lcom/aallam/openai/client/OpenAI; + public static synthetic fun OpenAI$default (Ljava/lang/String;Lcom/aallam/openai/client/LoggingConfig;Lcom/aallam/openai/api/http/Timeout;Ljava/lang/String;Ljava/util/Map;Lcom/aallam/openai/client/OpenAIHost;Lcom/aallam/openai/client/ProxyConfig;Lcom/aallam/openai/client/RetryStrategy;ILjava/lang/Object;)Lcom/aallam/openai/client/OpenAI; } public abstract interface class com/aallam/openai/client/ProxyConfig {