From e79b5efa99af6ea1a92013aa2550eea43d3b28b8 Mon Sep 17 00:00:00 2001 From: Mouaad Aallam Date: Sat, 24 Jun 2023 16:48:14 +0200 Subject: [PATCH] chore: prepare release 3.3.1 --- CHANGELOG.md | 6 ++++ gradle.properties | 2 +- openai-core/api/openai-core.api | 57 ++++++++++++++++----------------- 3 files changed, 34 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 838c7644..dfe7988e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 3.3.1 +> Published 24 Jun 2023 + +### Fix +- **Chat**: function mode serializer (#203) (thanks @emeasure-github-private) + # 3.3.0 > Published 19 Jun 2023 diff --git a/gradle.properties b/gradle.properties index 1dbb925f..ad4feabf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ kotlin.js.compiler=ir # Lib GROUP=com.aallam.openai -VERSION_NAME=3.3.0 +VERSION_NAME=3.3.1 # OSS SONATYPE_HOST=DEFAULT diff --git a/openai-core/api/openai-core.api b/openai-core/api/openai-core.api index 3d6783dd..3b7360e3 100644 --- a/openai-core/api/openai-core.api +++ b/openai-core/api/openai-core.api @@ -340,18 +340,18 @@ public final class com/aallam/openai/api/chat/ChatCompletionChunk$Companion { public final class com/aallam/openai/api/chat/ChatCompletionFunction { public static final field Companion Lcom/aallam/openai/api/chat/ChatCompletionFunction$Companion; - public synthetic fun (ILjava/lang/String;Ljava/lang/String;Lkotlinx/serialization/json/JsonElement;Lkotlinx/serialization/internal/SerializationConstructorMarker;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lkotlinx/serialization/json/JsonElement;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lkotlinx/serialization/json/JsonElement;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (ILjava/lang/String;Ljava/lang/String;Lcom/aallam/openai/api/chat/Parameters;Lkotlinx/serialization/internal/SerializationConstructorMarker;)V + public fun (Ljava/lang/String;Ljava/lang/String;Lcom/aallam/openai/api/chat/Parameters;)V + public synthetic fun (Ljava/lang/String;Ljava/lang/String;Lcom/aallam/openai/api/chat/Parameters;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ljava/lang/String; public final fun component2 ()Ljava/lang/String; - public final fun component3-siNK2OM ()Lkotlinx/serialization/json/JsonElement; - public final fun copy-5koiJTI (Ljava/lang/String;Ljava/lang/String;Lkotlinx/serialization/json/JsonElement;)Lcom/aallam/openai/api/chat/ChatCompletionFunction; - public static synthetic fun copy-5koiJTI$default (Lcom/aallam/openai/api/chat/ChatCompletionFunction;Ljava/lang/String;Ljava/lang/String;Lkotlinx/serialization/json/JsonElement;ILjava/lang/Object;)Lcom/aallam/openai/api/chat/ChatCompletionFunction; + public final fun component3 ()Lcom/aallam/openai/api/chat/Parameters; + public final fun copy (Ljava/lang/String;Ljava/lang/String;Lcom/aallam/openai/api/chat/Parameters;)Lcom/aallam/openai/api/chat/ChatCompletionFunction; + public static synthetic fun copy$default (Lcom/aallam/openai/api/chat/ChatCompletionFunction;Ljava/lang/String;Ljava/lang/String;Lcom/aallam/openai/api/chat/Parameters;ILjava/lang/Object;)Lcom/aallam/openai/api/chat/ChatCompletionFunction; public fun equals (Ljava/lang/Object;)Z public final fun getDescription ()Ljava/lang/String; public final fun getName ()Ljava/lang/String; - public final fun getParameters-siNK2OM ()Lkotlinx/serialization/json/JsonElement; + public final fun getParameters ()Lcom/aallam/openai/api/chat/Parameters; public fun hashCode ()I public fun toString ()Ljava/lang/String; public static final synthetic fun write$Self (Lcom/aallam/openai/api/chat/ChatCompletionFunction;Lkotlinx/serialization/encoding/CompositeEncoder;Lkotlinx/serialization/descriptors/SerialDescriptor;)V @@ -377,10 +377,10 @@ public final class com/aallam/openai/api/chat/ChatCompletionFunctionBuilder { public final fun build ()Lcom/aallam/openai/api/chat/ChatCompletionFunction; public final fun getDescription ()Ljava/lang/String; public final fun getName ()Ljava/lang/String; - public final fun getParameters-siNK2OM ()Lkotlinx/serialization/json/JsonElement; + public final fun getParameters ()Lcom/aallam/openai/api/chat/Parameters; public final fun setDescription (Ljava/lang/String;)V public final fun setName (Ljava/lang/String;)V - public final fun setParameters-E1B7bxQ (Lkotlinx/serialization/json/JsonElement;)V + public final fun setParameters (Lcom/aallam/openai/api/chat/Parameters;)V } public final class com/aallam/openai/api/chat/ChatCompletionFunctionKt { @@ -674,39 +674,36 @@ public final class com/aallam/openai/api/chat/FunctionMode$Named$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } -public final class com/aallam/openai/api/chat/FunctionParameters { - public static final field Companion Lcom/aallam/openai/api/chat/FunctionParameters$Companion; - public static final synthetic fun box-impl (Lkotlinx/serialization/json/JsonElement;)Lcom/aallam/openai/api/chat/FunctionParameters; - public static fun constructor-impl (Lkotlinx/serialization/json/JsonElement;)Lkotlinx/serialization/json/JsonElement; +public final class com/aallam/openai/api/chat/FunctionsBuilder { + public fun ()V + public final fun function (Lkotlin/jvm/functions/Function1;)V +} + +public final class com/aallam/openai/api/chat/Parameters { + public static final field Companion Lcom/aallam/openai/api/chat/Parameters$Companion; + public fun (Lkotlinx/serialization/json/JsonElement;)V + public final fun component1 ()Lkotlinx/serialization/json/JsonElement; + public final fun copy (Lkotlinx/serialization/json/JsonElement;)Lcom/aallam/openai/api/chat/Parameters; + public static synthetic fun copy$default (Lcom/aallam/openai/api/chat/Parameters;Lkotlinx/serialization/json/JsonElement;ILjava/lang/Object;)Lcom/aallam/openai/api/chat/Parameters; public fun equals (Ljava/lang/Object;)Z - public static fun equals-impl (Lkotlinx/serialization/json/JsonElement;Ljava/lang/Object;)Z - public static final fun equals-impl0 (Lkotlinx/serialization/json/JsonElement;Lkotlinx/serialization/json/JsonElement;)Z public final fun getSchema ()Lkotlinx/serialization/json/JsonElement; public fun hashCode ()I - public static fun hashCode-impl (Lkotlinx/serialization/json/JsonElement;)I public fun toString ()Ljava/lang/String; - public static fun toString-impl (Lkotlinx/serialization/json/JsonElement;)Ljava/lang/String; - public final synthetic fun unbox-impl ()Lkotlinx/serialization/json/JsonElement; } -public final class com/aallam/openai/api/chat/FunctionParameters$Companion { - public final fun buildJson-MLBsoQg (Lkotlin/jvm/functions/Function1;)Lkotlinx/serialization/json/JsonElement; - public final fun fromJsonString-MLBsoQg (Ljava/lang/String;)Lkotlinx/serialization/json/JsonElement; +public final class com/aallam/openai/api/chat/Parameters$Companion { + public final fun buildJsonObject (Lkotlin/jvm/functions/Function1;)Lcom/aallam/openai/api/chat/Parameters; + public final fun fromJsonString (Ljava/lang/String;)Lcom/aallam/openai/api/chat/Parameters; public final fun serializer ()Lkotlinx/serialization/KSerializer; } -public final class com/aallam/openai/api/chat/FunctionParameters$JsonDataSerializer : kotlinx/serialization/KSerializer { - public static final field INSTANCE Lcom/aallam/openai/api/chat/FunctionParameters$JsonDataSerializer; +public final class com/aallam/openai/api/chat/Parameters$JsonDataSerializer : kotlinx/serialization/KSerializer { + public static final field INSTANCE Lcom/aallam/openai/api/chat/Parameters$JsonDataSerializer; + public fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Lcom/aallam/openai/api/chat/Parameters; public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public fun deserialize-MLBsoQg (Lkotlinx/serialization/encoding/Decoder;)Lkotlinx/serialization/json/JsonElement; public fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public fun serialize (Lkotlinx/serialization/encoding/Encoder;Lcom/aallam/openai/api/chat/Parameters;)V public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun serialize-sO2LLWc (Lkotlinx/serialization/encoding/Encoder;Lkotlinx/serialization/json/JsonElement;)V -} - -public final class com/aallam/openai/api/chat/FunctionsBuilder { - public fun ()V - public final fun function (Lkotlin/jvm/functions/Function1;)V } public final class com/aallam/openai/api/completion/Choice {