Unreal OpenAI API 1.0.0
DeleteFineTunedModelAction.h
1// OpenAI, Copyright LifeEXE. All Rights Reserved.
2
3#pragma once
4
5#include "Kismet/BlueprintAsyncActionBase.h"
6#include "Provider/Types/ModelTypes.h"
7#include "Provider/Types/FineTuneTypes.h"
8#include "Provider/Types/CommonTypes.h"
9#include "DeleteFineTunedModelAction.generated.h"
10
11DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnDeleteFineTunedModel, const FDeleteFineTunedModelResponse&, Response,
12 const FOpenAIResponseMetadata&, ResponseMetadata, const FOpenAIError&, RawError);
13
14class UOpenAIProvider;
15
16UCLASS()
17class UDeleteFineTunedModelAction : public UBlueprintAsyncActionBase
18{
19 GENERATED_BODY()
20
21public:
22 UPROPERTY(BlueprintAssignable)
23 FOnDeleteFineTunedModel OnCompleted;
24
25 virtual void Activate() override;
26
27private:
32 UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true"), Category = "OpenAI | FineTunes")
33 static UDeleteFineTunedModelAction* DeleteFineTuneModel(const FString& ModelID, const FOpenAIAuth& Auth, const FString& URLOverride);
34
35 void TryToOverrideURL(UOpenAIProvider* Provider);
36
37 void OnDeleteFineTunedModelCompleted(const FDeleteFineTunedModelResponse& Response, const FOpenAIResponseMetadata& ResponseMetadata);
38 void OnRequestError(const FString& URL, const FString& Content);
39
40private:
41 FString ModelID;
42 FOpenAIAuth Auth;
43 FString URLOverride{};
44};
Definition: DeleteFineTunedModelAction.h:18
Definition: OpenAIProvider.h:45
Definition: ModelTypes.h:146
Definition: CommonTypes.h:11
Definition: CommonTypes.h:28
Definition: CommonTypes.h:49