Unreal OpenAI API 1.0.0
ModerationTypes.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "ModerationTypes.generated.h"
7
8UENUM(BlueprintType)
9enum class EModerationsModelEnum : uint8
10{
11 Text_Moderation_Stable,
12 Text_Moderation_Latest
13};
14
16// REQUEST TYPES
18
19USTRUCT(BlueprintType)
21{
22 GENERATED_BODY()
23
24
27 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
28 TArray<FString> Input;
29
38 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Optional")
39 FString Model{"text-moderation-stable"};
40};
41
43// RESPONSE TYPES
45
46USTRUCT(BlueprintType)
48{
49 GENERATED_BODY()
50
51 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
52 bool Hate{};
53
54 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
55 bool Hate_Threatening{};
56
57 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
58 bool Harassment{};
59
60 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
61 bool Harassment_Threatening{};
62
63 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
64 bool Self_Harm{};
65
66 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
67 bool Self_Harm_Intent{};
68
69 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
70 bool Self_Harm_Instructions{};
71
72 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
73 bool Sexual{};
74
75 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
76 bool Sexual_Minors{};
77
78 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
79 bool Violence{};
80
81 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
82 bool Violence_Graphic{};
83};
84
85USTRUCT(BlueprintType)
87{
88 GENERATED_BODY()
89
90 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
91 double Hate{};
92
93 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
94 double Hate_Threatening{};
95
96 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
97 double Harassment{};
98
99 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
100 double Harassment_Threatening{};
101
102 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
103 double Self_Harm{};
104
105 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
106 double Self_Harm_Intent{};
107
108 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
109 double Self_Harm_Instructions{};
110
111 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
112 double Sexual{};
113
114 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
115 double Sexual_Minors{};
116
117 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
118 double Violence{};
119
120 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
121 double Violence_Graphic{};
122};
123
124USTRUCT(BlueprintType)
126{
127 GENERATED_BODY()
128
129
132 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
133 bool Flagged{};
134
138 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
140
144 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
146};
147
148USTRUCT(BlueprintType)
150{
151 GENERATED_BODY()
152
153
156 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
157 FString ID;
158
162 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
163 FString Model;
164
168 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
169 TArray<FModerationResults> Results;
170};
Definition: OpenAI.Build.cs:6
Definition: ModerationTypes.h:48
Definition: ModerationTypes.h:87
Definition: ModerationTypes.h:126
Definition: ModerationTypes.h:21
Definition: ModerationTypes.h:150