Add spacing between chat messages.

This commit is contained in:
Bartosz Taudul
2025-05-13 19:07:01 +02:00
parent 10decca063
commit 74b6e481bb

View File

@@ -178,6 +178,7 @@ void TracyLlm::Draw()
{
int idx = 0;
int num = 0;
bool first = true;
for( auto& line : *m_chat )
{
const auto uw = ImGui::CalcTextSize( ICON_FA_USER ).x;
@@ -194,6 +195,15 @@ void TracyLlm::Draw()
const auto isError = role == "error";
const auto isAssistant = role == "assistant";
if( first )
{
first = false;
}
else
{
ImGui::Spacing();
}
float diff, offset;
if( isUser )
{