mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-02-10 01:00:23 -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_creator_version: "18.0.1"
|
||||
qt_creator_version: "18.0.2"
|
||||
}
|
||||
|
||||
steps:
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"Id" : "qodeassist",
|
||||
"Name" : "QodeAssist",
|
||||
"Version" : "0.9.8",
|
||||
"Version" : "0.9.9",
|
||||
"CompatVersion" : "${IDE_VERSION}",
|
||||
"Vendor" : "Petr Mironychev",
|
||||
"VendorId" : "petrmironychev",
|
||||
|
||||
@ -236,7 +236,7 @@ public:
|
||||
closeChatViewAction.setText(Tr::tr("Close QodeAssist Chat"));
|
||||
closeChatViewAction.setIcon(QCODEASSIST_CHAT_ICON.icon());
|
||||
closeChatViewAction.addOnTriggered(this, [this] {
|
||||
if (m_chatView->isVisible()) {
|
||||
if (m_chatView && m_chatView->isActive() && m_chatView->isVisible()) {
|
||||
m_chatView->close();
|
||||
}
|
||||
});
|
||||
|
||||
@ -84,17 +84,29 @@ QVector<AIConfiguration> ConfigurationManager::getPredefinedConfigurations(
|
||||
claudeHaiku.type = type;
|
||||
claudeHaiku.isPredefined = true;
|
||||
|
||||
AIConfiguration mistralCodestral;
|
||||
mistralCodestral.id = "preset_mistral_codestral";
|
||||
mistralCodestral.name = "Mistral Codestral";
|
||||
mistralCodestral.provider = "Mistral AI";
|
||||
mistralCodestral.model = "codestral-2501";
|
||||
mistralCodestral.url = "https://api.mistral.ai";
|
||||
mistralCodestral.endpointMode = "Auto";
|
||||
mistralCodestral.customEndpoint = "";
|
||||
mistralCodestral.templateName = type == ConfigurationType::CodeCompletion ? "Mistral AI FIM" : "Mistral AI Chat";
|
||||
mistralCodestral.type = type;
|
||||
mistralCodestral.isPredefined = true;
|
||||
AIConfiguration codestral;
|
||||
codestral.id = "preset_codestral";
|
||||
codestral.name = "Codestral";
|
||||
codestral.provider = "Codestral";
|
||||
codestral.model = "codestral-2501";
|
||||
codestral.url = "https://codestral.mistral.ai";
|
||||
codestral.endpointMode = "Auto";
|
||||
codestral.customEndpoint = "";
|
||||
codestral.templateName = type == ConfigurationType::CodeCompletion ? "Mistral AI FIM" : "Mistral AI Chat";
|
||||
codestral.type = type;
|
||||
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;
|
||||
geminiFlash.id = "preset_gemini_flash";
|
||||
@ -124,7 +136,8 @@ QVector<AIConfiguration> ConfigurationManager::getPredefinedConfigurations(
|
||||
presets.append(claudeHaiku);
|
||||
presets.append(claudeOpus);
|
||||
presets.append(gpt52codex);
|
||||
presets.append(mistralCodestral);
|
||||
presets.append(codestral);
|
||||
presets.append(mistral);
|
||||
presets.append(geminiFlash);
|
||||
|
||||
return presets;
|
||||
|
||||
Reference in New Issue
Block a user