mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-02 03:00:23 +03:00
Fix modifed files color highlight in treeview.
Minor change in AI Assistant.
This commit is contained in:
@@ -4,6 +4,10 @@
|
|||||||
"anthropic": {
|
"anthropic": {
|
||||||
"api_url": "https://api.anthropic.com/v1/messages",
|
"api_url": "https://api.anthropic.com/v1/messages",
|
||||||
"models": [
|
"models": [
|
||||||
|
{
|
||||||
|
"display_name": "Claude Opus 4.6",
|
||||||
|
"name": "claude-opus-4-6"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cache_configuration": {
|
"cache_configuration": {
|
||||||
"max_cache_anchors": 4,
|
"max_cache_anchors": 4,
|
||||||
@@ -240,6 +244,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "gpt-5.1-codex"
|
"name": "gpt-5.1-codex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "gpt-5.2-codex"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "gpt-5.3-codex"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": 1
|
"version": 1
|
||||||
@@ -416,6 +426,10 @@
|
|||||||
{
|
{
|
||||||
"name": "moonshotai/kimi-k2.5",
|
"name": "moonshotai/kimi-k2.5",
|
||||||
"display_name": "kimi-k2.5"
|
"display_name": "kimi-k2.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "stepfun/step-3.5-flash:free",
|
||||||
|
"display_name": "StepFun: Step 3.5 Flash"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -501,6 +501,7 @@ void AIAssistantPlugin::initUI() {
|
|||||||
std::optional<std::string> AIAssistantPlugin::getApiKeyFromProvider( const std::string& provider,
|
std::optional<std::string> AIAssistantPlugin::getApiKeyFromProvider( const std::string& provider,
|
||||||
AIAssistantPlugin* instance ) {
|
AIAssistantPlugin* instance ) {
|
||||||
static const char* OPEN_API_KEY = "";
|
static const char* OPEN_API_KEY = "";
|
||||||
|
|
||||||
const char* ret = nullptr;
|
const char* ret = nullptr;
|
||||||
if ( provider == "openai" ) {
|
if ( provider == "openai" ) {
|
||||||
ret = getenv( "OPENAI_API_KEY" );
|
ret = getenv( "OPENAI_API_KEY" );
|
||||||
@@ -516,8 +517,6 @@ std::optional<std::string> AIAssistantPlugin::getApiKeyFromProvider( const std::
|
|||||||
ret = getenv( "DEEPSEEK_API_KEY" );
|
ret = getenv( "DEEPSEEK_API_KEY" );
|
||||||
} else if ( provider == "mistral" ) {
|
} else if ( provider == "mistral" ) {
|
||||||
ret = getenv( "MISTRAL_API_KEY" );
|
ret = getenv( "MISTRAL_API_KEY" );
|
||||||
} else if ( provider == "lmstudio" || provider == "ollama" ) {
|
|
||||||
ret = OPEN_API_KEY;
|
|
||||||
} else if ( provider == "xai" ) {
|
} else if ( provider == "xai" ) {
|
||||||
const char* apiKey = getenv( "XAI_API_KEY" );
|
const char* apiKey = getenv( "XAI_API_KEY" );
|
||||||
if ( apiKey != nullptr )
|
if ( apiKey != nullptr )
|
||||||
@@ -534,6 +533,10 @@ std::optional<std::string> AIAssistantPlugin::getApiKeyFromProvider( const std::
|
|||||||
ret = getenv( "MOONSHOT_API_KEY" );
|
ret = getenv( "MOONSHOT_API_KEY" );
|
||||||
} else if ( provider == "nvidia" ) {
|
} else if ( provider == "nvidia" ) {
|
||||||
ret = getenv( "NVIDIA_API_KEY" );
|
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 )
|
if ( ret )
|
||||||
|
|||||||
@@ -1444,20 +1444,20 @@ void GitPlugin::buildSidePanelTab() {
|
|||||||
#git_status_tree ScrollBar:focus-within {
|
#git_status_tree ScrollBar:focus-within {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
.git_highlight_style > treeview::cell {
|
treeview::cell.git_highlight_style {
|
||||||
color: %s;
|
color: %s;
|
||||||
}
|
}
|
||||||
treeview::row:selected .git_highlight_style > treeview::cell,
|
treeview::row:selected treeview::cell.git_highlight_style,
|
||||||
treeview::row:selected .git_highlight_style > treeview::cell {
|
treeview::row:selected treeview::cell.git_highlight_style {
|
||||||
color: var(--list-row-active);
|
color: var(--list-row-active);
|
||||||
tint: 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-image: icon(circle, 8dpru), icon(circle-filled, 8dpru);
|
||||||
foreground-position: 80%% 80%%, 80%% 80%%;
|
foreground-position: 80%% 80%%, 80%% 80%%;
|
||||||
foreground-tint: black, %s;
|
foreground-tint: black, %s;
|
||||||
}
|
}
|
||||||
.git_highlight_style_clear > treeview::cell::icon {
|
treeview::cell.git_highlight_style_clear > treeview::cell::icon {
|
||||||
foreground-image: none, none;
|
foreground-image: none, none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user