Unreal OpenAI API 1.0.0
ChatCompletionChunkTypes.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Provider/Types/CommonTypes.h"
7#include "ChatCommonTypes.h"
8#include "ChatCompletionChunkTypes.generated.h"
9
11// RESPONSE TYPES
13
14USTRUCT(BlueprintType)
15struct FDelta
16{
17 GENERATED_BODY()
18
19
22 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
23 FString Content{};
24
25 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
26 FToolCallsDelta Tool_Calls;
27
31 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
32 FString Role;
33
37 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
38 FString Refusal;
39};
40
41USTRUCT(BlueprintType)
43{
44 GENERATED_BODY()
45
46
49 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
50 FDelta Delta{};
51
55 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
56 FLogProbs Logprobs;
57
65 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
66 FString Finish_Reason{};
67
71 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
72 int32 Index{};
73};
74
75USTRUCT(BlueprintType)
77{
78 GENERATED_BODY()
79
80
83 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
84 TArray<FChatStreamChoice> Choices;
85
92 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
93 FUsage Usage;
94};
Definition: OpenAI.Build.cs:6
Definition: ChatCommonTypes.h:444
Definition: ChatCompletionChunkTypes.h:77
Definition: ChatCompletionChunkTypes.h:43
Definition: ChatCompletionChunkTypes.h:16
Definition: ChatCommonTypes.h:426
Definition: ToolsTypes.h:56
Definition: ChatCommonTypes.h:356