mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-13 12:25:22 +00:00
Fix crash when embedding model is no longer available after provider switch.
This commit is contained in:
@@ -317,7 +317,7 @@ void TracyLlm::Draw()
|
||||
return;
|
||||
}
|
||||
|
||||
if( !manualEmbeddingsState.done || manualEmbeddingsState.model != models[m_embedIdx].name )
|
||||
if( !manualEmbeddingsState.done || m_embedIdx < 0 || manualEmbeddingsState.model != models[m_embedIdx].name )
|
||||
{
|
||||
if( m_embedIdx < 0 ) ImGui::BeginDisabled();
|
||||
if( ImGui::SmallButton( ICON_FA_BOOK_BOOKMARK " Learn manual" ) )
|
||||
|
||||
Reference in New Issue
Block a user