mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-15 05:15:23 +00:00
Remove explicit spacing hacks.
The new text wrapped functionality works in a way that already does this.
This commit is contained in:
@@ -245,8 +245,6 @@ void TracyLlm::Draw()
|
||||
int cacheIdx = 0;
|
||||
int treeIdx = 0;
|
||||
int num = 0;
|
||||
bool first = true;
|
||||
bool wasToolResponse = false;
|
||||
for( auto& line : *m_chat )
|
||||
{
|
||||
const auto uw = ImGui::CalcTextSize( ICON_FA_USER ).x;
|
||||
@@ -265,17 +263,6 @@ void TracyLlm::Draw()
|
||||
const auto isAssistant = role == "assistant";
|
||||
const auto isToolResponse = isUser && line["content"].get_ref<const std::string&>().starts_with( "<tool_output>\n" );
|
||||
|
||||
if( first )
|
||||
{
|
||||
first = false;
|
||||
}
|
||||
else if( !isToolResponse && !wasToolResponse )
|
||||
{
|
||||
ImGui::Spacing();
|
||||
}
|
||||
|
||||
wasToolResponse = isToolResponse;
|
||||
|
||||
float diff, offset;
|
||||
if( isToolResponse )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user