From 05e8e2a52ee237dc662adc8b0a4fd9a0f520c427 Mon Sep 17 00:00:00 2001 From: lucoiso Date: Mon, 10 Apr 2023 14:01:00 -0300 Subject: [PATCH 1/2] Hotfix: Add .ToLower() to role str param --- .../HttpGPTCommonModule/Private/Structures/HttpGPTChatTypes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/HttpGPTCommonModule/Private/Structures/HttpGPTChatTypes.cpp b/Source/HttpGPTCommonModule/Private/Structures/HttpGPTChatTypes.cpp index 29fdbb9..acc9f5d 100644 --- a/Source/HttpGPTCommonModule/Private/Structures/HttpGPTChatTypes.cpp +++ b/Source/HttpGPTCommonModule/Private/Structures/HttpGPTChatTypes.cpp @@ -20,7 +20,7 @@ FHttpGPTChatMessage::FHttpGPTChatMessage(const FName& Role, const FString& Conte TSharedPtr FHttpGPTChatMessage::GetMessage() const { TSharedPtr JsonObject = MakeShareable(new FJsonObject); - JsonObject->SetStringField("role", UHttpGPTHelper::RoleToName(Role).ToString()); + JsonObject->SetStringField("role", UHttpGPTHelper::RoleToName(Role).ToString().ToLower()); JsonObject->SetStringField("content", Content); return MakeShareable(new FJsonValueObject(JsonObject)); From 657e789727e7c483dc34713fed65d81f4b9303bd Mon Sep 17 00:00:00 2001 From: lucoiso Date: Mon, 10 Apr 2023 14:01:34 -0300 Subject: [PATCH 2/2] Update version to v1.5.1 --- HttpGPT.uplugin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HttpGPT.uplugin b/HttpGPT.uplugin index 0161f35..a05850e 100644 --- a/HttpGPT.uplugin +++ b/HttpGPT.uplugin @@ -1,7 +1,7 @@ { "FileVersion": 3, - "Version": 13, - "VersionName": "1.5.0", + "Version": 14, + "VersionName": "1.5.1", "FriendlyName": "HttpGPT - GPT Integration", "Description": "HttpGPT is an Unreal Engine plugin that facilitates integration with OpenAI's GPT based services (ChatGPT and DALL-E) through asynchronous REST requests, making it easy for developers to communicate with the chatbot. HttpGPT also includes Editor Tools to integrate Chat GPT and DALL-E image generation directly in the Engine.", "Category": "Game Features",