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

Commit 05e8e2a

Browse files
committed
Hotfix: Add .ToLower() to role str param
1 parent 95937a4 commit 05e8e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)