Unreal OpenAI API 1.0.0
Loading...
Searching...
No Matches
UChatGPTWidget Class Reference
Inheritance diagram for UChatGPTWidget:

Protected Member Functions

virtual void NativeConstruct () override

Protected Attributes

int32 MaxTokens {2000}
TObjectPtr< UVerticalBox > StartVerticalBox
TObjectPtr< UComboBoxString > ChatGPTModelComboBox
TObjectPtr< UVerticalBox > MessagesVerticalBox
TObjectPtr< UScrollBox > ChatScrollBox
TObjectPtr< UEditableText > UserInputTextBox
TObjectPtr< UButton > SendMessageButton
TObjectPtr< UButton > DumpChatButton
TObjectPtr< UButton > ClearChatButton
TObjectPtr< UButton > AttachImageButton
TSubclassOf< UChatMessageWidgetChatMessageWidgetClass
TObjectPtr< UGridPanel > ServiceContainer
TSubclassOf< UServiceWidgetServiceWidgetClass
TArray< TSubclassOf< UBaseService > > Services
TObjectPtr< UTextBlock > ServicesWarningTextBlock
TObjectPtr< UAttachedFilesContainerWidgetAttachedFilesContainer

Private Member Functions

void OnSendMessage ()
void OnDumpChat ()
void OnClearChat ()
void OnTextCommitted (const FText &Text, ETextCommit::Type CommitMethod)
void OnTextChanged (const FText &Text)
void OnModelSelectionChanged (FString SelectedItem, ESelectInfo::Type SelectionType)
void OnImageSelected ()
void InitChatGPT ()
void InitModelsComboBox ()
void OnRequestCompleted ()
void OnRequestUpdated (const FMessage &Message, bool WasError)
void CreateMessageWidget (const FMessage &Message)
void EnableControls (bool Enabled)
FString GenerateFilePath () const
void UpdateVisionElements ()
void UpdateSendMessageButton ()
void OnFileRemoved ()
void CreateServiceWidgets ()
void OnServiceEnabled (bool IsEnabled, const TSubclassOf< UBaseService > &ServiceClass, const TObjectPtr< UServiceWidget > &ServiceWidget)

Private Attributes

TObjectPtr< UChatGPTChatGPT
TArray< TObjectPtr< UChatMessageWidget > > ChatWidgets
TObjectPtr< USaveSettingsSaveSettings
TArray< TObjectPtr< UServiceWidget > > ServiceWidgets
OpenAI::ServiceSecrets ServiceSecrets

The documentation for this class was generated from the following files: