Unreal OpenAI API 1.0.0
ChatCompletionTypes.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 "ChatCompletionTypes.generated.h"
9
11// RESPONSE TYPES
13
14USTRUCT(BlueprintType)
16{
17 GENERATED_BODY()
18
19
26 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
27 FString Finish_Reason{};
28
32 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
33 int32 Index{};
34
38 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
39 FMessage Message;
40
44 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
45 FLogProbs Logprobs;
46};
47
48USTRUCT(BlueprintType)
50{
51 GENERATED_BODY()
52
53
56 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
57 int32 Audio_Tokens{};
58
62 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
63 int32 Reasoning_Tokens{};
64};
65
66USTRUCT(BlueprintType)
68{
69 GENERATED_BODY()
70
71
74 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
75 int32 Audio_Tokens{};
76
80 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
81 int32 Cached_Tokens{};
82};
83
84USTRUCT(BlueprintType)
85struct FCompletionUsage : public FUsage
86{
87 GENERATED_BODY()
88
89
92 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
93 FCompletionTokensDetails Completion_Tokens_Details;
94
98 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
99 FPromptTokensDetails Prompt_Tokens_Details;
100};
101
102USTRUCT(BlueprintType)
104{
105 GENERATED_BODY()
109 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
110 TArray<FChatChoice> Choices;
111
115 UPROPERTY(BlueprintReadOnly, Category = "OpenAI")
117};
Definition: OpenAI.Build.cs:6
Definition: ChatCompletionTypes.h:16
Definition: ChatCommonTypes.h:444
Definition: ChatCompletionTypes.h:104
Definition: ChatCompletionTypes.h:50
Definition: ChatCompletionTypes.h:86
Definition: ChatCommonTypes.h:426
Definition: ChatCommonTypes.h:75
Definition: ChatCompletionTypes.h:68
Definition: ChatCommonTypes.h:356