Commit Graph

77 Commits

Author SHA1 Message Date
Povilas Kanapickas
7c483f89cd
chore: Replace deprecated FilePath::toString() with toFSPathString() (#116)
This solves a number of deprecation warnings during build.
FilePath::toFSPathString() has been available since couple of years ago.
2025-03-08 16:08:33 +01:00
Povilas Kanapickas
6c323642e4
refactor: Inject settings into LLMClientInterface (#114)
This reduces reliance on global state and makes it more possible to test
the code.
2025-03-08 15:08:15 +01:00
Povilas Kanapickas
3a494d5254
chore: Remove duplicate label setting for systemPromptForNonFimModels (#111)
The same call is several lines below.

Note that systemPrompt does not need label due to a similarly named
checkbox placed nearby. Thus users intuitively know what the text box is
for.
2025-03-08 10:40:22 +01:00
Povilas Kanapickas
cb3464170e
chore: Run clang-format over the codebase (#91)
This commit is a result of the following commands:

clang-format-19 --style=file -i $(git ls-files | fgrep .cpp)
clang-format-19 --style=file -i $(git ls-files | fgrep .hpp)
2025-03-05 01:45:15 +01:00
Povilas Kanapickas
ca0fb5efbb
fix: Make plugin registration be compatible with Qt Creator 16 (#80)
This introduces changes needed after the following commit in Qt Creator:

ba5e4b7eff

Core: Provide settings categories centrally
2025-03-04 11:29:30 +01:00
Povilas Kanapickas
3b188740e8
fix: Make settings dialogs button order consistent (#84)
Currently on Linux most dialogs follow the following order of action
buttons: "OK", "Cancel" (left to right). However, several dialogs are
constructed explicitly and don't follow this convention.

This commit fixes this discrepancy.

Fixes: https://github.com/Palm1r/QodeAssist/issues/83
2025-03-03 19:12:01 +01:00
Povilas Kanapickas
0d22e1866e
fix: Add tooltip about where log messages can be seen (#86) 2025-03-03 19:00:25 +01:00
Povilas Kanapickas
61196cae90
chore: Run clang-format over the codebase (#82)
This commit is a result of the following commands:

clang-format-19 --style=file -i $(git ls-files | fgrep .cpp)
clang-format-19 --style=file -i $(git ls-files | fgrep .hpp)
2025-03-02 22:44:20 +01:00
Povilas Kanapickas
102bb114a1
refactor: Remove duplicate constants from SettingsConstants.hpp (#81)
These are duplicated in QodeAssistConstants.hpp. This prevents inclusion
of both files into any source file anywhere in the project.
2025-03-02 22:25:25 +01:00
Petr Mironychev
84025ec843 feat: Separate system prompt for fin and non-fim models 2025-02-26 22:51:38 +01:00
Petr Mironychev
f6fd411b2d feat: Add moving to api key settings page if needed 2025-02-26 21:51:11 +01:00
Petr Mironychev
903eb50e7a fix: Current template description in General Settings 2025-02-26 13:39:49 +01:00
Petr Mironychev
90ae6cd1c0 feat: Add checkbox for disabling chat 2025-02-26 13:18:30 +01:00
Petr Mironychev
2ad0117498 fix: Crash in open General Settings after another settings tab 2025-02-26 11:15:36 +01:00
Petr Mironychev
9d58565de3 feat: Add template description in general settings 2025-02-25 21:58:39 +01:00
Petr Mironychev
8dba9b4baa fix: Saving mistral and google keys to settings 2025-02-25 19:21:44 +01:00
Petr Mironychev
7ba615a72d feat: Add Google AI provider and template 2025-02-25 14:26:56 +01:00
Petr Mironychev
d96f44d42c
refactor: Rework providers and templates logic 2025-02-22 19:39:28 +01:00
Petr Mironychev
bd25736a55 refactor: Optimize SystemPrompt for code completion 2025-02-16 16:53:03 +01:00
Petr Mironychev
60936f6d84 refactor: Improve code completion message for Instruct models
Some checks failed
Build plugin / ${{ matrix.config.name }} (map[artifact:Linux-x64 cc:gcc cxx:g++ name:Ubuntu Latest GCC os:ubuntu-latest platform:linux_x64]) (push) Has been cancelled
Build plugin / ${{ matrix.config.name }} (map[artifact:Windows-x64 cc:cl cxx:cl environment_script:C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat name:Windows Latest MSVC os:windows-latest platform:windows_x64]) (push) Has been cancelled
Build plugin / ${{ matrix.config.name }} (map[artifact:macOS-universal cc:clang cxx:clang++ name:macOS Latest Clang os:macos-latest platform:mac_x64]) (push) Has been cancelled
Build plugin / update_json (push) Has been cancelled
Build plugin / release (push) Has been cancelled
2025-02-12 02:05:37 +01:00
Petr Mironychev
7d23d0323f refactor: Improve system prompt and message 2025-02-12 01:47:52 +01:00
Petr Mironychev
2a0beb6c4c feat: Add language-specific LLM preset configuration
- Add ability to configure separate provider/model/template for specific programming language
- Add UI controls for language preset configuration
- Support custom provider selection per language
- Support custom model selection per language
- Support custom template selection per language
2025-02-02 22:57:18 +01:00
Petr Mironychev
4bf955462f feat: Update dialog offer open plugin folder 2025-01-27 00:54:49 +01:00
Petr Mironychev
9096adde6f fix: Remove installing plugin from update dialog 2025-01-24 18:23:11 +01:00
Petr Mironychev
b8e578d2d7
chore: Update plugin to QtCreator 15.0.1
* fix: Additional check qtc version
* build: Upgrade plugin to QtC 15.0.1
* chore: Upgrade plugin version to 0.4.8
2025-01-24 13:29:44 +01:00
Petr Mironychev
928490d31f fix: small style changes 2025-01-24 01:50:56 +01:00
Petr Mironychev
bf63ae5714 refactor: Improve systemPrompt for code completion 2025-01-24 00:37:52 +01:00
Petr Mironychev
ae76850e78 fix: Buttons order in urls dialog on general page 2025-01-24 00:29:15 +01:00
Petr Mironychev
bf3c0b3aa0 feat: Add auto sync open files with model context 2025-01-24 00:22:44 +01:00
Petr Mironychev
a6c909d34d
exp: Add ubuntu 22.04 experimental builds 2025-01-21 14:58:44 +01:00
Petr Mironychev
61fded34ea feat: add OpenAI provider settings 2025-01-19 00:50:23 +01:00
Petr Mironychev
9db61119aa
feat: Add check plugin update and dialog for update 2025-01-13 20:11:27 +01:00
Petr Mironychev
511f5b36eb
Upgrade to version 0.4.4
* feat: Add attachments for message
* feat: Support QtC color palette for chat view
* feat: Improve code completion from non-FIM models
* refactor: Removed trimming messages
* chore: Bump version to 0.4.4
2025-01-08 02:05:25 +01:00
Petr Mironychev
35012865c7 refactor: Claude user message and code completion system prompt 2024-12-25 17:50:47 +01:00
Petr Mironychev
113d5adcf4 fix: Add description for deprecated settings 2024-12-24 22:00:53 +01:00
Petr Mironychev
ee2c3950e8 fix: path to chat file without project 2024-12-23 23:17:43 +01:00
Petr Mironychev
d04e5bc967
Add Claude provider and templates for chat and code (#55)
* feat: Add provider settings
* feat: Add Claude provider
* feat: Add Claude templates
* refactor: Setting input sensitivity
* fix: Back text after read code block
* fix: Add missing system message for ollama fim
2024-12-23 22:22:01 +01:00
Petr Mironychev
e544e46d76
feat: Add saving and loading chat history
* feat: Add chat history path
* feat: Add save and load chat
* fix: Change badge width calculation
* refactor: Move chat action to top
* feat: Add autosave of messageReceived
* feat: Add settings for autosave
2024-12-23 18:34:01 +01:00
Petr Mironychev
7dee6f62c0 feat: Add project settings panel 2024-12-21 14:11:45 +01:00
Petr Mironychev
ac8080542d
feat: Add using instruct model in code completion
*  feat: Add MessageBuilder for code completion
*  feat: Add move text from request to comments
*  feat: Add settings for process text of instruct model
* 🐛 fix: Add stop to ollama request validator
* 🐛 fix: Template double delete
2024-12-17 00:35:17 +01:00
Petr Mironychev
a38debb140 🐛 fix: Remove test buttons 2024-12-12 15:25:31 +01:00
Petr Mironychev
16b77a5722 feat: Add stream option to settings 2024-12-10 21:46:39 +01:00
Petr Mironychev
55e2b24b8d
Upgrade plugin to Qt Creator 15
* 🐛 fix: Change plugin configs
* 🐛 fix: Update Button aspect api
* 🐛 fix: Temproary fix for LLMSuggestions
* 🐛 fix: Update github actions
* 🔖 chore: Upgrade version in README
2024-12-03 11:15:35 +01:00
Petr Mironychev
b475f15e3d feat: Improve system prompt for code completion 2024-11-26 11:29:20 +01:00
Petr Mironychev
50087aa744 Change configure part in description
- Replace codellama to qwen models
- Add prefer auto template for ollama provider
2024-11-23 21:55:57 +01:00
Petr Mironychev
4f2dc0c450 feat: Add Ollama auto template for chat 2024-11-23 21:15:34 +01:00
Petr Mironychev
80fe388bdd
feat: Add automatic template handling for Ollama models (#43)
* feat: Add automatic template handling for Ollama models

- Add OllamaAutoFim
- Use native Ollama API format when possible
- Remove need for manual template selection for most Ollama models
- Default to model-specific format from Ollama modelfile
- Fallback to manual template selection if needed

This change simplifies configuration by automatically using
the correct template format for each Ollama model.
2024-11-23 19:37:55 +01:00
Petr Mironychev
f209cb75a2
Impove UX general setting by added helpers dialogs for user (#42)
- Added dialogs for selecting url, model and custom model when provider doesn't provide model list or setup of qode assist is not finishing
2024-11-16 15:25:28 +01:00
Petr Mironychev
5e813ba402
Fix systemPrompt and context working 2024-11-16 10:20:57 +01:00
Petr Mironychev
251a9bae03 Fix settings category icon and name 2024-11-11 11:26:11 +01:00