Commit graph

396 commits

Author SHA1 Message Date
Carl-Robert Linnupuu
e8002a116c docs: update changelog 2024-04-21 17:38:57 +03:00
Rene Leonhardt
a10b5f791a
feat: Upgrade submodule for Llama 3 support (#483) 2024-04-21 17:12:14 +03:00
Carl-Robert Linnupuu
39679d9ee9 fix: custom service settings sync 2024-04-21 01:39:26 +03:00
Rene Leonhardt
6e6a499105
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 01:12:13 +03:00
Carl-Robert Linnupuu
bcb33aeeeb docs: update readme 2024-04-21 01:09:48 +03:00
Simon Svensson
14f3254913
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-20 23:23:08 +03:00
Phil
c8181a62e4
feat: add input field for llama server build parameters and improve error handling (#481) 2024-04-20 23:18:43 +03:00
Rene Leonhardt
67dc425a94
fix: Telemetry can't serialize traits anymore (#477)
* fix: Telemetry can't serialize traits anymore

* Add tests
2024-04-19 17:06:37 +03:00
Phil
9666590cb1
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-18 18:49:04 +03:00
Rene Leonhardt
29b36c52f8
chore: Convert utils to Kotlin (#473)
* chore: Convert utils to Kotlin

* Remove nullable operators
2024-04-18 17:01:55 +03:00
Rene Leonhardt
b202d46984
fix: High CPU usage in new files check (#446) (#474)
* fix: High CPU usage in new files check (#446)

* Resolve absolute path
2024-04-18 16:36:49 +03:00
Carl-Robert Linnupuu
92d9d5ee20 fix: file watcher disposable by making it project-level service 2024-04-17 16:33:04 +03:00
ChuangLee
63f139dd74
feat: cancel completions early on newline (#461)
* Stream completion results and cancel early on newline

* Rename 'suggestion, needCancel' to 'message, cancel'

* Replace cancelCurrentCall() with eventSource.cancel() for simplicity

* remove isStreaming variable and onComplete() method

* fix: do not trigger completed callbacks during streaming

---------

Co-authored-by: lichuang <lichuanglai8@163.com>
Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-04-17 14:34:37 +03:00
Simon Svensson
b2d9442eba
fix: custom OpenAI service settings sync (#472) 2024-04-17 12:46:21 +03:00
Simon Svensson
7d075f6905
Persist credentials back into the PasswordSafe (#465) 2024-04-17 12:04:40 +03:00
René
2221d72430
feat: add support for placeholders in prompts (#458)
* fixes #432 adds support for Placeholders in Prompts

- activate gradle plugin Git4Idea
- adds PlaceholderUtil
- adds DATE_ISO_8601 PlaceholderReplacer
- adds BRANCH_NAME PlaceholderReplacer

* convert to kotlin, improve ui and add int. test

* fix: do not reuse projects from previous test runs

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-04-17 11:41:21 +03:00
Carl-Robert Linnupuu
f6a5113216 2.6.2 2024-04-15 16:03:37 +03:00
Carl-Robert Linnupuu
077059fd23 chore(deps): bump llm-client 2024-04-15 15:51:12 +03:00
Rene Leonhardt
5f16213bd1
fix: Use System Prompt from user configuration (#454) (#455) 2024-04-15 11:42:42 +03:00
Carl-Robert Linnupuu
0dfaa128b7 2.6.1 2024-04-12 18:04:51 +03:00
Carl-Robert Linnupuu
d4690e9796 fix: remove exclusion of okhttp dependency from gradle-intellij-plugin (required for publishPlugin task) 2024-04-12 18:01:21 +03:00
Carl-Robert Linnupuu
2911bc71ce docs: update changelog 2024-04-12 17:17:29 +03:00
Carl-Robert Linnupuu
18a4e80951 chore(deps): bump llm-client 2024-04-12 16:21:54 +03:00
Carl-Robert Linnupuu
a9131430af fix: temporarily disable tree-sitter logic (fixes #452) 2024-04-12 01:57:04 +03:00
Rene Leonhardt
6de7696877
fix: Use correct setting for updates and screenshot checkboxes (#446) (#451) 2024-04-11 17:54:28 +03:00
Rene Leonhardt
0cdd5096ba
chore: Convert Java tests to Kotlin (#447) 2024-04-11 12:03:31 +03:00
Rene Leonhardt
6fb0b8d30c
fix: Catch AssertionError in countTokens() (#445) 2024-04-10 14:56:35 +03:00
Rene Leonhardt
7d89650062
chore: Improve code (#442)
* chore: Improve code

* Convert classes to records
2024-04-10 14:47:38 +03:00
Rene Leonhardt
c29d3928db
Update to latest 233 platform 2023.3.6 (#439)
* Update to latest 233 platform 2023.3.6

* Use first non-blank choice from response
2024-04-08 16:46:13 +03:00
Carl-Robert Linnupuu
a50e068813 fix: set until build version 2024-04-08 16:38:10 +03:00
Carl-Robert Linnupuu
3ef9aba488 docs: extract getting started guide into its own doc 2024-04-07 17:38:00 +03:00
Carl-Robert Linnupuu
3c2d185b8a 2.6.0 2024-04-07 17:28:39 +03:00
Rene Leonhardt
00c9813eeb
chore(deps): Update checkstyle to 10.15.0 (#438)
* Cleaned versions catalog and dependencies
* Fixed checkstyle finding
2024-04-07 16:53:59 +03:00
Carl-Robert Linnupuu
4688a1c8d0 refactor: remove 'Standard' prefix from toolwindow component class names, and other minor cleanup 2024-04-07 16:45:04 +03:00
Rene Leonhardt
7f505e2c30
chore(deps): Update and centralize dependencies (#436)
* chore(deps): Update and centralize dependencies

* Update treesitter to 0.22.2
* Update kotlin to 1.9.23
* Update jackson to 2.17.0
* Update gradle-intellij-plugin to 1.17.3
* Update gradle to 8.7
* Use BOMs where possible
* Centralize dependencies in version catalog
* Allow Dependabot to update other modules (add treesitter and buildSrc/src/main/kotlin, remove core)

* fix: preload credentials only once for all headers
2024-04-06 13:41:02 +03:00
Carl-Robert Linnupuu
52ceaa6a26 docs: update changelog 2024-04-06 02:25:05 +03:00
Carl-Robert Linnupuu
efe0f0b74a fix: use the proper callback for text area autofocus 2024-04-06 02:24:32 +03:00
Carl-Robert Linnupuu
71aee5f6aa fix: prevent sending completion to a closed channel 2024-04-06 02:02:12 +03:00
Carl-Robert Linnupuu
30025d2378 feat: request focus for text area on toolwindow state changes (closes #423) 2024-04-06 00:49:24 +03:00
Carl-Robert Linnupuu
2048f87fa8 docs: update changelog 2024-04-05 19:05:14 +03:00
Artem Borzov
9ed95f4e4e
fix: correctly handle changed files to generate a commit message #338 (#433)
* fix: properly handle changed files to generate commit message (resolve #338)

* fix: re-include staged diff in the final prompt

---------

Co-authored-by: borzov <borzov@skbkontur.ru>
Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-04-05 19:02:18 +03:00
Carl-Robert Linnupuu
17cfbf43de docs: update readme 2024-04-04 16:40:34 +03:00
Carl-Robert Linnupuu
314fbfbafc docs: update plugin description 2024-04-04 16:16:59 +03:00
Carl-Robert Linnupuu
3246102f06 docs: update changelog 2024-04-04 16:15:55 +03:00
Carl-Robert Linnupuu
fef8f6f903 docs: update changelog 2024-04-03 02:07:54 +03:00
Carl-Robert Linnupuu
f0172722c7 feat: add support for configuring code completions via settings 2024-04-03 02:02:15 +03:00
Carl-Robert Linnupuu
2b98b65210 docs: update changelog 2024-04-02 20:59:22 +03:00
Carl-Robert Linnupuu
79ef7550fe fix: send button enabled state 2024-04-02 20:54:59 +03:00
Carl-Robert Linnupuu
35ee02ba79 feat: display total tokens for all providers (closes #397) 2024-04-02 20:43:26 +03:00
Carl-Robert
8cf5720db9
feat: OpenAI and Claude vision support (#430)
* feat: add OpenAI and Claude vision support

* refactor: replace awaitility with PlatformTestUtil.waitWithEventsDispatching

* feat: display error when image not found

* chore: bump llm-client

* feat: configurable file watcher and minor code cleanup

* fix: ensure image notifications are triggered only for image file types

* docs: update changelog

* fix: user textarea icon button behaviour

* refactor: minor cleanup
2024-04-02 02:50:41 +03:00