diff --git a/bin/assets/plugins/aiassistant.json b/bin/assets/plugins/aiassistant.json index 33b6adcd2..640f09715 100644 --- a/bin/assets/plugins/aiassistant.json +++ b/bin/assets/plugins/aiassistant.json @@ -4,6 +4,10 @@ "anthropic": { "api_url": "https://api.anthropic.com/v1/messages", "models": [ + { + "display_name": "Claude Opus 4.6", + "name": "claude-opus-4-6" + }, { "cache_configuration": { "max_cache_anchors": 4, @@ -240,6 +244,12 @@ }, { "name": "gpt-5.1-codex" + }, + { + "name": "gpt-5.2-codex" + }, + { + "name": "gpt-5.3-codex" } ], "version": 1 @@ -416,6 +426,10 @@ { "name": "moonshotai/kimi-k2.5", "display_name": "kimi-k2.5" + }, + { + "name": "stepfun/step-3.5-flash:free", + "display_name": "StepFun: Step 3.5 Flash" } ] }, diff --git a/src/tools/ecode/plugins/aiassistant/aiassistantplugin.cpp b/src/tools/ecode/plugins/aiassistant/aiassistantplugin.cpp index af98d1186..4f929fc2b 100644 --- a/src/tools/ecode/plugins/aiassistant/aiassistantplugin.cpp +++ b/src/tools/ecode/plugins/aiassistant/aiassistantplugin.cpp @@ -501,6 +501,7 @@ void AIAssistantPlugin::initUI() { std::optional AIAssistantPlugin::getApiKeyFromProvider( const std::string& provider, AIAssistantPlugin* instance ) { static const char* OPEN_API_KEY = ""; + const char* ret = nullptr; if ( provider == "openai" ) { ret = getenv( "OPENAI_API_KEY" ); @@ -516,8 +517,6 @@ std::optional AIAssistantPlugin::getApiKeyFromProvider( const std:: ret = getenv( "DEEPSEEK_API_KEY" ); } else if ( provider == "mistral" ) { ret = getenv( "MISTRAL_API_KEY" ); - } else if ( provider == "lmstudio" || provider == "ollama" ) { - ret = OPEN_API_KEY; } else if ( provider == "xai" ) { const char* apiKey = getenv( "XAI_API_KEY" ); if ( apiKey != nullptr ) @@ -534,6 +533,10 @@ std::optional AIAssistantPlugin::getApiKeyFromProvider( const std:: ret = getenv( "MOONSHOT_API_KEY" ); } else if ( provider == "nvidia" ) { ret = getenv( "NVIDIA_API_KEY" ); + } else { + const auto& providerModelIt = instance->mProviders.find( provider ); + if ( providerModelIt != instance->mProviders.end() && providerModelIt->second.openApi ) + ret = OPEN_API_KEY; } if ( ret ) diff --git a/src/tools/ecode/plugins/git/gitplugin.cpp b/src/tools/ecode/plugins/git/gitplugin.cpp index 3d49740fc..09b4881c0 100644 --- a/src/tools/ecode/plugins/git/gitplugin.cpp +++ b/src/tools/ecode/plugins/git/gitplugin.cpp @@ -1444,20 +1444,20 @@ void GitPlugin::buildSidePanelTab() { #git_status_tree ScrollBar:focus-within { opacity: 1; } - .git_highlight_style > treeview::cell { + treeview::cell.git_highlight_style { color: %s; } - treeview::row:selected .git_highlight_style > treeview::cell, - treeview::row:selected .git_highlight_style > treeview::cell { + treeview::row:selected treeview::cell.git_highlight_style, + treeview::row:selected treeview::cell.git_highlight_style { color: var(--list-row-active); tint: var(--list-row-active); } - .git_highlight_style > treeview::cell::icon { + treeview::cell.git_highlight_style > treeview::cell::icon { foreground-image: icon(circle, 8dpru), icon(circle-filled, 8dpru); foreground-position: 80%% 80%%, 80%% 80%%; foreground-tint: black, %s; } - .git_highlight_style_clear > treeview::cell::icon { + treeview::cell.git_highlight_style_clear > treeview::cell::icon { foreground-image: none, none; }