mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-02-10 17:20:19 -05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec45067336 | |||
| 52fb65c5b1 | |||
| 478f369ad2 | |||
| 762c965377 |
2
.github/workflows/build_cmake.yml
vendored
2
.github/workflows/build_cmake.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
qt_version: "6.10.1",
|
qt_version: "6.10.1",
|
||||||
qt_creator_version: "18.0.1"
|
qt_creator_version: "18.0.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"Id" : "qodeassist",
|
"Id" : "qodeassist",
|
||||||
"Name" : "QodeAssist",
|
"Name" : "QodeAssist",
|
||||||
"Version" : "0.9.8",
|
"Version" : "0.9.9",
|
||||||
"CompatVersion" : "${IDE_VERSION}",
|
"CompatVersion" : "${IDE_VERSION}",
|
||||||
"Vendor" : "Petr Mironychev",
|
"Vendor" : "Petr Mironychev",
|
||||||
"VendorId" : "petrmironychev",
|
"VendorId" : "petrmironychev",
|
||||||
|
|||||||
@ -236,7 +236,7 @@ public:
|
|||||||
closeChatViewAction.setText(Tr::tr("Close QodeAssist Chat"));
|
closeChatViewAction.setText(Tr::tr("Close QodeAssist Chat"));
|
||||||
closeChatViewAction.setIcon(QCODEASSIST_CHAT_ICON.icon());
|
closeChatViewAction.setIcon(QCODEASSIST_CHAT_ICON.icon());
|
||||||
closeChatViewAction.addOnTriggered(this, [this] {
|
closeChatViewAction.addOnTriggered(this, [this] {
|
||||||
if (m_chatView->isVisible()) {
|
if (m_chatView && m_chatView->isActive() && m_chatView->isVisible()) {
|
||||||
m_chatView->close();
|
m_chatView->close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -84,17 +84,29 @@ QVector<AIConfiguration> ConfigurationManager::getPredefinedConfigurations(
|
|||||||
claudeHaiku.type = type;
|
claudeHaiku.type = type;
|
||||||
claudeHaiku.isPredefined = true;
|
claudeHaiku.isPredefined = true;
|
||||||
|
|
||||||
AIConfiguration mistralCodestral;
|
AIConfiguration codestral;
|
||||||
mistralCodestral.id = "preset_mistral_codestral";
|
codestral.id = "preset_codestral";
|
||||||
mistralCodestral.name = "Mistral Codestral";
|
codestral.name = "Codestral";
|
||||||
mistralCodestral.provider = "Mistral AI";
|
codestral.provider = "Codestral";
|
||||||
mistralCodestral.model = "codestral-2501";
|
codestral.model = "codestral-2501";
|
||||||
mistralCodestral.url = "https://api.mistral.ai";
|
codestral.url = "https://codestral.mistral.ai";
|
||||||
mistralCodestral.endpointMode = "Auto";
|
codestral.endpointMode = "Auto";
|
||||||
mistralCodestral.customEndpoint = "";
|
codestral.customEndpoint = "";
|
||||||
mistralCodestral.templateName = type == ConfigurationType::CodeCompletion ? "Mistral AI FIM" : "Mistral AI Chat";
|
codestral.templateName = type == ConfigurationType::CodeCompletion ? "Mistral AI FIM" : "Mistral AI Chat";
|
||||||
mistralCodestral.type = type;
|
codestral.type = type;
|
||||||
mistralCodestral.isPredefined = true;
|
codestral.isPredefined = true;
|
||||||
|
|
||||||
|
AIConfiguration mistral;
|
||||||
|
mistral.id = "preset_mistral";
|
||||||
|
mistral.name = "Mistral";
|
||||||
|
mistral.provider = "Mistral AI";
|
||||||
|
mistral.model = type == ConfigurationType::CodeCompletion ? "mistral-medium-latest" : "mistral-large-latest";
|
||||||
|
mistral.url = "https://api.mistral.ai";
|
||||||
|
mistral.endpointMode = "Auto";
|
||||||
|
mistral.customEndpoint = "";
|
||||||
|
mistral.templateName = type == ConfigurationType::CodeCompletion ? "Mistral AI FIM" : "Mistral AI Chat";
|
||||||
|
mistral.type = type;
|
||||||
|
mistral.isPredefined = true;
|
||||||
|
|
||||||
AIConfiguration geminiFlash;
|
AIConfiguration geminiFlash;
|
||||||
geminiFlash.id = "preset_gemini_flash";
|
geminiFlash.id = "preset_gemini_flash";
|
||||||
@ -124,7 +136,8 @@ QVector<AIConfiguration> ConfigurationManager::getPredefinedConfigurations(
|
|||||||
presets.append(claudeHaiku);
|
presets.append(claudeHaiku);
|
||||||
presets.append(claudeOpus);
|
presets.append(claudeOpus);
|
||||||
presets.append(gpt52codex);
|
presets.append(gpt52codex);
|
||||||
presets.append(mistralCodestral);
|
presets.append(codestral);
|
||||||
|
presets.append(mistral);
|
||||||
presets.append(geminiFlash);
|
presets.append(geminiFlash);
|
||||||
|
|
||||||
return presets;
|
return presets;
|
||||||
|
|||||||
Reference in New Issue
Block a user