Unreal OpenAI API 1.0.0
UploadTypes.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Provider/OpenAIOptional.h"
7#include "Provider/Types/FileTypes.h"
8#include "UploadTypes.generated.h"
9
10UENUM(BlueprintType)
11enum class EUploadStatus : uint8
12{
13 Pending = 0,
14 Completed,
15 Cancelled
16};
17
19// REQUEST TYPES
21
22USTRUCT(BlueprintType)
24{
25 GENERATED_BODY()
26
27
30 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
31 FString Filename;
32
38 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
39 FString Purpose;
40
44 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
45 int64 Bytes{};
46
52 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
53 FString Mime_Type;
54};
55
56USTRUCT(BlueprintType)
58{
59 GENERATED_BODY()
60
61
64 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
65 FString Data;
66};
67
68USTRUCT(BlueprintType)
70{
71 GENERATED_BODY()
72
73
76 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
77 TArray<FString> Part_Ids;
78
83 UPROPERTY(BlueprintReadWrite, Category = "OpenAI | Required")
85};
86
88// RESPONSE TYPES
90
94USTRUCT(BlueprintType)
96{
97 GENERATED_BODY()
98
99
102 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
103 FString Id;
104
108 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
109 int32 Created_At{};
110
114 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
115 FString Filename;
116
120 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
121 int64 Bytes{};
122
126 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
127 FString Purpose;
128
132 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
133 FString Status;
134
138 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
139 int32 Expires_At{};
140
144 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
145 FString Object;
146
150 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
152};
153
157USTRUCT(BlueprintType)
159{
160 GENERATED_BODY()
161
162
165 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
166 FString Id;
167
171 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
172 int32 Created_At{};
173
177 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
178 FString Upload_Id;
179
183 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
184 FString Object;
185};
Definition: OpenAI.Build.cs:6
Definition: UploadTypes.h:58
Definition: UploadTypes.h:70
Definition: UploadTypes.h:24
Definition: FileTypes.h:55
Definition: OpenAIOptional.h:10
Definition: UploadTypes.h:96
Definition: UploadTypes.h:159