mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-30 23:18:27 +00:00
Properly set state when reseting ollama URL to default.
This commit is contained in:
@@ -869,7 +869,13 @@ static void DrawContents()
|
||||
ImGui::Indent();
|
||||
ImGui::TextUnformatted( "Ollama URL" );
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( ICON_FA_HOUSE ) ) s_config.llmAddress = "http://localhost:11434";
|
||||
if( ImGui::Button( ICON_FA_HOUSE ) )
|
||||
{
|
||||
llmstatus = 0;
|
||||
llmModels.clear();
|
||||
s_config.llmAddress = "http://localhost:11434";
|
||||
SaveConfig();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
char llmAddress[1024];
|
||||
snprintf( llmAddress, sizeof( llmAddress ), "%s", s_config.llmAddress.c_str() );
|
||||
|
||||
Reference in New Issue
Block a user