|
void | SetAuth (const FOpenAIAuth &OpenAIAuth) |
|
void | SetModel (const FString &Model) |
|
FString | GetModel () const |
|
void | SetMaxTokens (int32 Tokens) |
|
void | SetLogEnabled (bool Enabled) |
|
bool | RegisterService (const TSubclassOf< UBaseService > &ServiceClass, const OpenAI::ServiceSecrets &Secrets) |
|
void | UnRegisterService (const TSubclassOf< UBaseService > &ServiceClass) |
|
void | AddMessage (const FMessage &Message) |
|
void | SetAssistantMessage (const FMessage &Message) |
|
FMessage | GetAssistantMessage () const |
|
void | MakeRequest () |
|
void | ClearHistory () |
|
TArray< FMessage > | GetHistory () const |
|
FOnChatGPTRequestCompleted & | OnRequestCompleted () |
|
FOnChatGPTRequestUpdated & | OnRequestUpdated () |
|
|
void | HandleRequestCompletion () |
|
void | UpdateAssistantMessage (const FString &Message, bool WasError=false) |
|
void | HandleError (const FString &Content) |
|
bool | HandleFunctionCall (const FFunctionCommon &FunctionCall, const FString &ID) |
|
|
TObjectPtr< UOpenAIProvider > | Provider |
|
TArray< TObjectPtr< UBaseService > > | Services |
|
FOpenAIAuth | Auth |
|
FString | OpenAIModel |
|
int32 | MaxCompletionTokens {100} |
|
TArray< FMessage > | ChatHistory |
|
FMessage | AssistantMessage |
|
FOnChatGPTRequestCompleted | RequestCompleted |
|
FOnChatGPTRequestUpdated | RequestUpdated |
|
The documentation for this class was generated from the following files:
- Source/OpenAI/Public/ChatGPT/ChatGPT.h
- Source/OpenAI/Private/ChatGPT/ChatGPT.cpp