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

Commit

Permalink
v1.5.1 Hotfix: Add .ToLower() to role str param
Browse files Browse the repository at this point in the history
  • Loading branch information
lucoiso authored Apr 10, 2023
2 parents 4fe6480 + 657e789 commit 69cf1ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions HttpGPT.uplugin
Original file line number Diff line number Diff line change
@@ -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 these services. HttpGPT also includes new Editor Tools to integrate Chat GPT and DALL-E image generation directly in the Engine.",
"Category": "Game Features",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FHttpGPTChatMessage::FHttpGPTChatMessage(const FName& Role, const FString& Conte
TSharedPtr<FJsonValue> FHttpGPTChatMessage::GetMessage() const
{
TSharedPtr<FJsonObject> 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));
Expand Down

0 comments on commit 69cf1ad

Please sign in to comment.