Commit graph

432 commits

Author SHA1 Message Date
Rene Leonhardt
c4b65e7a53 feat: Visualize downloaded models (#543)
* feat: Visualize downloaded models

* Simplify GeneralSettings access
2024-05-13 16:02:27 +03:00
Carl-Robert Linnupuu
4dbe0f5532 fix: lookup completion request validation 2024-05-13 16:01:49 +03:00
Phil
d1bf0025c4 feat: add keyboard shortcuts for Editor actions (#542) 2024-05-13 16:01:44 +03:00
Rene Leonhardt
5440fc7469 fix: Handle problems graciously (#541) 2024-05-13 16:01:34 +03:00
Carl-Robert Linnupuu
8f793fdfa9 fix: store empty string as credential to avoid repeated secret fetching 2024-05-13 16:00:11 +03:00
Carl-Robert Linnupuu
2e961bcb6a fix: lookup and commit message completions for codegpt provider 2024-05-13 16:00:05 +03:00
dependabot[bot]
06392efcd7 chore(deps): bump com.fasterxml.jackson:jackson-bom (#539)
Bumps [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) from 2.17.0 to 2.17.1.
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.17.0...jackson-bom-2.17.1)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-13 15:59:58 +03:00
dependabot[bot]
e57ebaa74f chore(deps): bump org.jetbrains.kotlin:kotlin-gradle-plugin (#540)
Bumps [org.jetbrains.kotlin:kotlin-gradle-plugin](https://github.com/JetBrains/kotlin) from 1.9.23 to 1.9.24.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.9.23...v1.9.24)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-13 15:59:54 +03:00
Rene Leonhardt
3f75057b8f chore: Update to CodeGemma 1.1 7b Instruct (#534) 2024-05-13 15:59:50 +03:00
Carl-Robert Linnupuu
52b5bcce96 fix: long-running tasks on EDT when initializing forms 2024-05-13 15:59:42 +03:00
Carl-Robert
4d0166b0ff feat: extract providers into their standalone configurables (#538)
* fix: extract services to their own configurables

* feat: switch to selected provider automatically upon apply

* fix: credentials loading at once

* fix: rename llama.cpp title
2024-05-13 15:59:14 +03:00
Carl-Robert
61613336bb feat: add CodeGPT "native" API provider (#537)
* feat: support codegpt client

* feat: add basic request handler test

* refactor: minor cleanup
2024-05-13 15:59:04 +03:00
Phil
9677e10d6b feat: add Google Gemini API support (#535) 2024-05-13 15:58:14 +03:00
Carl-Robert Linnupuu
2db8e3b2f0 chore(deps): bump llm-client and tree-sitter 2024-05-13 15:57:54 +03:00
Phil
143fea57fa fix: refresh Ollama models only when service is changed to Ollama (#536) 2024-05-13 15:57:48 +03:00
Phil
a173840ee5 Revert "fix: use /infill for llama.cpp code-completions (#513)" (#533)
This reverts commit 8de72b3301.
2024-05-13 15:57:40 +03:00
Rene Leonhardt
d743b60bfe feat: Support CodeQwen1.5-Chat model (#527)
* feat: Support CodeQwen1.5-Chat model

* Declare model directories explicitly
2024-05-13 15:57:13 +03:00
Jack Boswell
5fb6589dc6 feat: Implement Ollama as a high-level service (#510)
* Initial implementation of Ollama as a service

* Fix model selector in tool window

* Enable image attachment

* Rewrite OllamaSettingsForm in Kt

* Create OllamaInlineCompletionModel and use it for building completion template

* Add support for blocking code completion on models that we don't know support it

* Allow disabling code completion settings

* Disable code completion settings when an unsupported model is entered

* Track FIM template in settings as a derived state

* Update llm-client

* Initial implementation of model combo box

* Add Ollama icon and display models as list

* Make OllamaSettingsState immutable & convert OllamaSettings to Kotlin

* Add refresh models button

* Distinguish between empty/needs refresh/loading

* Avoid storing any model if the combo box is empty

* Fix icon size

* Back to mutable settings
There were some bugs with immutable settings

* Store available models in settings state

* Expose available models in model dropdown

* Add dark icon

* Cleanups for CompletionRequestProvider

* Fix checkstyle issues

* refactor: migrate to SimplePersistentStateComponent

* fix: add code completion stop tokens

* fix: display only one item in the model popup action group

* fix: add back multi model selection

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-05-13 15:57:00 +03:00
Phil
7b386686b0 fix: CustomService Test connection with correct settings (#531) 2024-05-13 15:55:28 +03:00
Carl-Robert Linnupuu
43ec887b17 fix: build 2024-05-13 15:55:22 +03:00
Phil
b70aad9980 fix: Storing HuggingFaceModel by modelName instead of quantization only (#529) 2024-05-13 15:55:17 +03:00
Phil
98ae7698e4 feat: add Mistral AI service template (#532) 2024-05-13 15:55:12 +03:00
Phil
908d8b9286 feat: add CodeGemma InfillPromptTemplate (#530) 2024-05-13 15:55:08 +03:00
Rene Leonhardt
af2391ac9a feat: Support CodeGemma 7b Instruct model (#524) (#525) 2024-05-13 15:55:02 +03:00
Jack Boswell
c37f02b6ad refactor: Expand and explicitly handle cases where a ServiceType is checked (#521)
This streamlines changes to ServiceType, where any additions or removals will be flagged at compile time to be handled, instead of silently falling back to a default value.
2024-05-13 15:54:54 +03:00
Jack Boswell
e4796da277 chore: Bump llm-client to 0.7.5 (#520)
* Bump llm-client to 0.7.3

* llm-client 0.7.5

Co-authored-by: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com>

---------

Co-authored-by: Rene Leonhardt <65483435+reneleonhardt@users.noreply.github.com>
2024-05-13 15:54:18 +03:00
Phil
da0f9a189e fix: add optional Git4Idea dependency to plugin.xml (#526) 2024-05-13 15:54:12 +03:00
Rene Leonhardt
f557d02748 feat: Support Phi-3 Mini model (#516) 2024-05-13 15:54:06 +03:00
Phil
5cd9531246 fix: focus on new editor action and refresh editor actions on apply (#518) 2024-05-13 15:54:00 +03:00
Phil
1842c98084 fix: use /infill for llama.cpp code-completions (#513) 2024-05-13 15:53:46 +03:00
Carl-Robert Linnupuu
28aac5a369 fix: commit message generation for custom openai services (closes #496) 2024-05-13 15:52:53 +03:00
Rene Leonhardt
10b8535347 fix: NPE when using unsupported model for code completions (#499) 2024-05-13 15:52:48 +03:00
Rene Leonhardt
f7ce60e1a4 feat: Add Llama 3 download sizes (#498) 2024-05-13 15:52:44 +03:00
Carl-Robert Linnupuu
4fc09a3053 chore(deps): bump deps 2024-05-13 15:52:37 +03:00
Carl-Robert Linnupuu
c0b43dd592 2.6.3 2024-04-22 12:26:59 +03:00
Carl-Robert Linnupuu
b0ba7f998e fix: kotlin build interoperability 2024-04-22 12:20:36 +03:00
Carl-Robert Linnupuu
86cc6f08f0 fix: compatibility issues 2024-04-22 00:16:21 +03:00
Carl-Robert Linnupuu
ff528e91e0 fix: build errors 2024-04-22 00:07:39 +03:00
Carl-Robert Linnupuu
69dc2ea9fc fix: llama server success callback trigger 2024-04-22 00:00:41 +03:00
Carl-Robert Linnupuu
477d51ce7c fix: llama3 prompt 2024-04-22 00:00:35 +03:00
Carl-Robert Linnupuu
1ceb4fc49c docs: update plugin description 2024-04-22 00:00:27 +03:00
Carl-Robert Linnupuu
6273091b41 docs: update changelog 2024-04-22 00:00:16 +03:00
Rene Leonhardt
649e7c93c9 feat: Upgrade submodule for Llama 3 support (#483) 2024-04-21 23:58:10 +03:00
Carl-Robert Linnupuu
1423ebf2a5 fix: custom service settings sync 2024-04-21 23:48:04 +03:00
Rene Leonhardt
fe06f559b3 feat: Support Llama 3 model (#479)
* feat: Support Llama 3 model (#478)

* Use new InfillPrompt

* Switch to lmstudio-community

* Use new Prompt

* llama.cpp removed the BOS token
https://github.com/ggerganov/llama.cpp/pull/6751/commits/a55d8a9348fc9e9215229bf03f96ecff4dcc7c91

* Add tests

* I would prefer a stream based solution

* Add 70B models

* Add tests for skipping blank system prompt

* Remove InfillPrompt for now
2024-04-21 23:47:55 +03:00
Carl-Robert Linnupuu
fd1431b771 docs: update readme 2024-04-21 23:47:36 +03:00
Simon Svensson
2eb21ea295 feat: code completion for "Custom OpenAI Service" (#476)
* Add code completion setting states for custom service

* Add settings for code completion in Custom OpenAI service

* Move code completion section to the bottom

* Create test testFetchCodeCompletionCustomService

* Add Custom OpenAI to the "Enable/Disable Completion" actions

* New configuration UI separating /v1/chat/completions from /v1/completions

* Code completion for Custom Service

* Formatting fixes

* Move prefix and suffix to templates in body

* Message updates

* New tabbed UI for Chat and Code Completions

* convert to kotlin, improve ui and other minor changes

* fix test connection for chat completions

* add help tooltips

* allow backward compatibility

* support prefix and suffix placeholders

* fix initial state loading

---------

Co-authored-by: Jack Boswell (boswelja) <boswelja@outlook.com>
Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-04-21 23:47:25 +03:00
Phil
98d28f3fc6 feat: add input field for llama server build parameters and improve error handling (#481) 2024-04-21 23:43:53 +03:00
Rene Leonhardt
f02e3cedbe fix: Telemetry can't serialize traits anymore (#477)
* fix: Telemetry can't serialize traits anymore

* Add tests
2024-04-21 23:42:52 +03:00
Phil
5e297e4d87 feat: add include file in context to editor context menu (#475)
* feat: add include file in context to editor context menu

* fix: custom title for IncludeFilesInContextAction in editor context menu
2024-04-21 23:42:45 +03:00