| 3019 | } |
| 3020 | |
| 3021 | void LLMChatUI::addChat( LLMChat::Role role, const std::string& conversation ) { |
| 3022 | UIWidget* chat = addChatUI( role ); |
| 3023 | auto* editor = chat->findByClass<UICodeEditor>( "data_ui" ); |
| 3024 | editor->getDocument().textInput( String::fromUtf8( conversation ) ); |
| 3025 | editor->setCursorVisible( false ); |
| 3026 | editor->setAllowSelectingTextFromGutter( false ); |
| 3027 | bindCmds( editor, false ); |
| 3028 | resizeToFit( editor ); |
| 3029 | } |
| 3030 | |
| 3031 | void LLMChatUI::addChat( LLMChat::Role role, const String& conversation ) { |
| 3032 | UIWidget* chat = addChatUI( role ); |
nothing calls this directly
no test coverage detected