Unreal OpenAI API 1.0.0
Static Public Member Functions | List of all members
UOpenAIFuncLib Class Reference
Inheritance diagram for UOpenAIFuncLib:

Static Public Member Functions

static FString OpenAIAllModelToString (EAllModelEnum Model)
 
static FString OpenAIMainModelToString (EMainModelEnum Model)
 
static FString OpenAIModelToString (const FOpenAIModel &OpenAIModel)
 
static FString OpenAIModerationModelToString (EModerationsModelEnum Model)
 
static FString OpenAIModerationsToString (const FModerationResults &ModerationResults)
 
static bool ModelSupportsVision (const FString &Model)
 
static FString OpenAIAudioModelToString (EAudioModel Model)
 
static FString OpenAITTSModelToString (ETTSModel Model)
 
static FString OpenAIVoiceToString (EVoice Voice)
 
static FString OpenAITTSAudioFormatToString (ETTSAudioFormat Format)
 
static FString OpenAIAudioTranscriptToString (ETranscriptFormat TranscriptFormat)
 
static FString OpenAIImageModelToString (EImageModelEnum Model)
 
static EImageModelEnum StringToOpenAIImageModel (const FString &Model)
 
static FString OpenAIImageSizeDalle2ToString (EImageSizeDalle2 ImageSize)
 
static EImageSizeDalle2 StringToOpenAIImageSizeDalle2 (const FString &ImageSize)
 
static FString OpenAIImageSizeDalle3ToString (EImageSizeDalle3 ImageSize)
 
static EImageSizeDalle3 StringToOpenAIImageSizeDalle3 (const FString &ImageSize)
 
static FString OpenAIImageFormatToString (EOpenAIImageFormat ImageFormat)
 
static EOpenAIImageFormat StringToOpenAIImageFormat (const FString &ImageFormat)
 
static FString OpenAIImageQualityToString (EOpenAIImageQuality ImageQuality)
 
static EOpenAIImageQuality StringToOpenAIImageQuality (const FString &ImageQuality)
 
static FString OpenAIImageStyleToString (EOpenAIImageStyle ImageStyle)
 
static EOpenAIImageStyle StringToOpenAIImageStyle (const FString &ImageStyle)
 
static FString OpenAIChatResponseFormatToString (EChatResponseFormat ChatResponseFormat)
 
static FString OpenAIMessageContentTypeToString (EMessageContentType MessageContentType)
 
static FString OpenAIServiceTierToString (EServiceTier ServiceTier)
 
static FString OpenAIEmbeddingsEncodingFormatToString (EEmbeddingsEncodingFormat EmbeddingsEncodingFormat)
 
static FString OpenAIUploadFilePurposeToString (EUploadFilePurpose UploadFilePurpose)
 
static FString OpenAIBatchEndpointToString (EBatchEndpoint BatchEndpoint)
 
static FString OpenAIBatchCompletionWindowToString (EBatchCompletionWindow BatchCompletionWindow)
 
static FString OpenAIUploadStatusToString (EUploadStatus UploadStatus)
 
static FString OpenAIAssistantToolTypeToString (EAssistantToolType AssistantToolType)
 
static FString OpenAIRoleToString (ERole Role)
 
static FString OpenAIFinishReasonToString (EOpenAIFinishReason FinishReason)
 
static EOpenAIFinishReason StringToOpenAIFinishReason (const FString &FinishReason)
 
static ERole StringToOpenAIRole (const FString &Role)
 
static FString OpenAIHeaderTypeToString (EOpenAIHttpHeaderType Type)
 
static FString FindOpenAIHttpHeaderByType (const FOpenAIResponseMetadata &Headers, EOpenAIHttpHeaderType Type)
 
static EOpenAIResponseError GetErrorCode (const FString &RawError)
 
static FString GetErrorMessage (const FString &RawError)
 
static FString ResponseErrorToString (EOpenAIResponseError Code)
 
static FString WrapBase64 (const FString &Base64String)
 
static FString UnWrapBase64 (const FString &Base64String)
 
static FString FilePathToBase64 (const FString &FilePath)
 
static FOpenAIAuth LoadAPITokensFromFile (const FString &FilePath)
 
static FOpenAIAuth LoadAPITokensFromFileOnce (const FString &FilePath)
 
static FString BoolToString (bool Value)
 
static FString RemoveWhiteSpaces (const FString &Input)
 
static OpenAI::ServiceSecrets LoadServiceSecretsFromFile (const FString &FilePath)
 
static bool LoadSecretByName (const OpenAI::ServiceSecrets &Secrets, const FString &SecretName, FString &SecretValue)
 
static FString MakeURLWithQuery (const FString &URL, const OpenAI::QueryPairs &Args)
 

Member Function Documentation

◆ LoadAPITokensFromFile()

FOpenAIAuth UOpenAIFuncLib::LoadAPITokensFromFile ( const FString &  FilePath)
static

File content consits of two lines: APIKey=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx OrganizationID=org-xxxxxxxxxxxxxxxxxxxxxx ProjectID=proj_xxxxxxxxxxxxxxxxxxxxxx


The documentation for this class was generated from the following files: