16 UFUNCTION(BlueprintPure, Category =
"OpenAI | Model")
17 static FString OpenAIAllModelToString(EAllModelEnum Model);
19 UFUNCTION(BlueprintPure, Category =
"OpenAI | Model")
20 static FString OpenAIMainModelToString(EMainModelEnum Model);
22 UFUNCTION(BlueprintPure, Category =
"OpenAI | Model")
23 static FString OpenAIModelToString(
const FOpenAIModel& OpenAIModel);
25 UFUNCTION(BlueprintPure, Category =
"OpenAI | Moderation")
26 static FString OpenAIModerationModelToString(EModerationsModelEnum Model);
28 UFUNCTION(BlueprintPure, Category =
"OpenAI | Moderations")
31 UFUNCTION(BlueprintPure, Category =
"OpenAI | Model | Vision")
32 static bool ModelSupportsVision(
const FString& Model);
34 UFUNCTION(BlueprintPure, Category =
"OpenAI| Audio")
35 static FString OpenAIAudioModelToString(EAudioModel Model);
37 UFUNCTION(BlueprintPure, Category =
"OpenAI| Audio")
38 static FString OpenAITTSModelToString(ETTSModel Model);
40 UFUNCTION(BlueprintPure, Category =
"OpenAI| Audio")
41 static FString OpenAIVoiceToString(EVoice Voice);
43 UFUNCTION(BlueprintPure, Category =
"OpenAI| Audio")
44 static FString OpenAITTSAudioFormatToString(ETTSAudioFormat Format);
46 UFUNCTION(BlueprintPure, Category =
"OpenAI | Audio")
47 static FString OpenAIAudioTranscriptToString(ETranscriptFormat TranscriptFormat);
49 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
50 static FString OpenAIImageModelToString(EImageModelEnum Model);
52 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
53 static EImageModelEnum StringToOpenAIImageModel(
const FString& Model);
55 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
56 static FString OpenAIImageSizeGptImage1ToString(EImageSizeGptImage1 ImageSize);
58 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
59 static EImageSizeGptImage1 StringToOpenAIImageSizeGptImage1(
const FString& ImageSize);
61 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
62 static FString OpenAIImageFormatToString(EOpenAIImageFormat ImageFormat);
64 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
65 static EOpenAIImageFormat StringToOpenAIImageFormat(
const FString& ImageFormat);
67 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
68 static FString OpenAIImageQualityToString(EOpenAIImageQuality ImageQuality);
70 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
71 static FString OpenAIImageOutputFormatToString(EOpenAIImageOutputFormat ImageOutputFormat);
73 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
74 static EOpenAIImageQuality StringToOpenAIImageQuality(
const FString& ImageQuality);
76 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
77 static FString OpenAIImageBackgroundToString(EOpenAIImageBackground ImageBackground);
79 UFUNCTION(BlueprintPure, Category =
"OpenAI | Image")
80 static FString OpenAIImageModerationToString(EOpenAIImageModeration ImageModeration);
82 UFUNCTION(BlueprintPure, Category =
"OpenAI | Chat")
83 static FString OpenAIChatResponseFormatToString(EChatResponseFormat ChatResponseFormat);
85 UFUNCTION(BlueprintPure, Category =
"OpenAI | Chat")
86 static FString OpenAIMessageContentTypeToString(EMessageContentType MessageContentType);
88 UFUNCTION(BlueprintPure, Category =
"OpenAI | Chat")
89 static FString OpenAIServiceTierToString(EServiceTier ServiceTier);
91 UFUNCTION(BlueprintPure, Category =
"OpenAI | Embeddings")
92 static FString OpenAIEmbeddingsEncodingFormatToString(EEmbeddingsEncodingFormat EmbeddingsEncodingFormat);
94 UFUNCTION(BlueprintPure, Category =
"OpenAI | File")
95 static FString OpenAIUploadFilePurposeToString(EUploadFilePurpose UploadFilePurpose);
97 UFUNCTION(BlueprintPure, Category =
"OpenAI | Batch")
98 static FString OpenAIBatchEndpointToString(EBatchEndpoint BatchEndpoint);
100 UFUNCTION(BlueprintPure, Category =
"OpenAI | Batch")
101 static FString OpenAIBatchCompletionWindowToString(EBatchCompletionWindow BatchCompletionWindow);
103 UFUNCTION(BlueprintPure, Category =
"OpenAI | Upload")
104 static FString OpenAIUploadStatusToString(EUploadStatus UploadStatus);
106 UFUNCTION(BlueprintPure, Category =
"OpenAI | Upload")
107 static FString OpenAIAssistantToolTypeToString(EAssistantToolType AssistantToolType);
110 UFUNCTION(BlueprintPure, Category =
"OpenAI | Video")
111 static FString OpenAIVideoModelToString(EVideoModel VideoModel);
113 UFUNCTION(BlueprintPure, Category =
"OpenAI | Video")
114 static EVideoModel StringToOpenAIVideoModel(
const FString& VideoModel);
116 UFUNCTION(BlueprintPure, Category =
"OpenAI | Video")
117 static FString OpenAIVideoStatusToString(EVideoStatus VideoStatus);
119 UFUNCTION(BlueprintPure, Category =
"OpenAI | Video")
120 static EVideoStatus StringToOpenAIVideoStatus(
const FString& VideoStatus);
122 UFUNCTION(BlueprintPure, Category =
"OpenAI | Video")
123 static FString OpenAIVideoVariantToString(EVideoVariant VideoVariant);
125 UFUNCTION(BlueprintPure, Category =
"OpenAI | Video")
126 static EVideoVariant StringToOpenAIVideoVariant(
const FString& VideoVariant);
128 UFUNCTION(BlueprintPure, Category =
"OpenAI | Video")
129 static FString OpenAIVideoSizeToString(EVideoSize VideoSize);
131 UFUNCTION(BlueprintPure, Category =
"OpenAI | Video")
132 static EVideoSize StringToOpenAIVideoSize(
const FString& VideoSize);
135 UFUNCTION(BlueprintPure, Category =
"OpenAI | Common")
136 static FString OpenAIRoleToString(ERole Role);
138 UFUNCTION(BlueprintPure, Category =
"OpenAI | Common")
139 static FString OpenAIFinishReasonToString(EOpenAIFinishReason FinishReason);
141 UFUNCTION(BlueprintPure, Category =
"OpenAI | Common")
142 static EOpenAIFinishReason StringToOpenAIFinishReason(
const FString& FinishReason);
144 UFUNCTION(BlueprintPure, Category =
"OpenAI | Common")
145 static ERole StringToOpenAIRole(
const FString& Role);
147 UFUNCTION(BlueprintPure, Category =
"OpenAI | Common")
148 static FString OpenAIHeaderTypeToString(EOpenAIHttpHeaderType Type);
150 UFUNCTION(BlueprintPure, Category =
"OpenAI | Common")
154 UFUNCTION(BlueprintPure, Category =
"OpenAI | Error")
155 static EOpenAIResponseError GetErrorCode(
const FString& RawError);
157 UFUNCTION(BlueprintPure, Category =
"OpenAI | Error")
158 static FString GetErrorMessage(
const FString& RawError);
160 UFUNCTION(BlueprintPure, Category =
"OpenAI | Error")
161 static FString ResponseErrorToString(EOpenAIResponseError Code);
164 UFUNCTION(BlueprintPure, Category =
"OpenAI | Base64")
165 static FString WrapBase64(
const FString& Base64String);
167 UFUNCTION(BlueprintPure, Category =
"OpenAI | Base64")
168 static FString UnWrapBase64(
const FString& Base64String);
170 UFUNCTION(BlueprintPure, Category =
"OpenAI | Base64")
171 static FString FilePathToBase64(
const FString& FilePath);
180 UFUNCTION(BlueprintPure, Category =
"OpenAI | API")
183 UFUNCTION(BlueprintPure, Category =
"OpenAI | API")
184 static FOpenAIAuth LoadAPITokensFromFileOnce(
const FString& FilePath);
187 static FString BoolToString(
bool Value);
188 static FString RemoveWhiteSpaces(
const FString& Input);
189 static OpenAI::ServiceSecrets LoadServiceSecretsFromFile(
const FString& FilePath);
190 static bool LoadSecretByName(
const OpenAI::ServiceSecrets& Secrets,
const FString& SecretName, FString& SecretValue);
191 static FString MakeURLWithQuery(
const FString& URL,
const OpenAI::QueryPairs& Args);