Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 69cf1ad

Browse files
authored
v1.5.1 Hotfix: Add .ToLower() to role str param
2 parents 4fe6480 + 657e789 commit 69cf1ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

HttpGPT.uplugin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"FileVersion": 3,
3-
"Version": 13,
4-
"VersionName": "1.5.0",
3+
"Version": 14,
4+
"VersionName": "1.5.1",
55
"FriendlyName": "HttpGPT - GPT Integration",
66
"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 these services. HttpGPT also includes new Editor Tools to integrate Chat GPT and DALL-E image generation directly in the Engine.",
77
"Category": "Game Features",

Source/HttpGPTCommonModule/Private/Structures/HttpGPTChatTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ FHttpGPTChatMessage::FHttpGPTChatMessage(const FName& Role, const FString& Conte
2020
TSharedPtr<FJsonValue> FHttpGPTChatMessage::GetMessage() const
2121
{
2222
TSharedPtr<FJsonObject> JsonObject = MakeShareable(new FJsonObject);
23-
JsonObject->SetStringField("role", UHttpGPTHelper::RoleToName(Role).ToString());
23+
JsonObject->SetStringField("role", UHttpGPTHelper::RoleToName(Role).ToString().ToLower());
2424
JsonObject->SetStringField("content", Content);
2525

2626
return MakeShareable(new FJsonValueObject(JsonObject));

0 commit comments

Comments
 (0)