Unreal OpenAI API 1.0.0
HttpHelper.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
7class OPENAI_API HttpHelper
8{
9public:
10 static FString MIMETypeFromExt(const FString& Ext);
11 static TArray<uint8> AddMIMEFile(const FString& FilePath, const FString& ParamName, const FString& BeginBoundary);
12 static TArray<uint8> AddMIME(const FString& ParamName, const FString& ParamValue, const FString& BeginBoundary);
13 static TTuple<FString, FString, FString> MakeBoundary(int64 Ticks = FDateTime::Now().GetTicks());
14};
Definition: HttpHelper.h:8