[#110] Add AI client with multi-provider support and UI #113

Manually merged
jabber.developer merged 64 commits from feat/ai into master 2026-05-15 02:22:56 +00:00
22 changed files with 4080 additions and 8 deletions
Showing only changes of commit 89a224b017 - Show all commits

View File

@@ -11141,12 +11141,7 @@ cmd_ai_models(ProfWin* window, const char* const command, gchar** args)
cons_show("Use '/ai models %s' to fetch fresh models from the API.", provider_name);
} else {
// Default: fetch fresh models from API
if (!window || window->type != WIN_AI) {
cons_show_error("Must be in an AI chat window to fetch models.");
return TRUE;
}
ProfAiWin* aiwin = (ProfAiWin*)window;
ai_fetch_models(provider_name, aiwin);
ai_fetch_models(provider_name, window);
}
return TRUE;