Commit graph

288 commits

Author SHA1 Message Date
Carl-Robert Linnupuu
097f0914bf refactor: extract configuration state into standalone class 2024-02-07 02:13:22 +02:00
Carl-Robert Linnupuu
d0132c6c34 refactor: clean up unused configuration 2024-02-07 00:49:16 +02:00
Carl-Robert Linnupuu
1aac1f1084 fix: code completion improvements 2024-02-07 00:47:13 +02:00
Carl-Robert Linnupuu
dfca391ed5 fix: revert code completion feature toggle dumbaware actions 2024-02-07 00:45:52 +02:00
Carl-Robert Linnupuu
df14b88617 feat: add the latest OpenAI chat models 2024-02-06 18:49:30 +02:00
Carl-Robert Linnupuu
169957687d fix: test execution 2024-02-06 02:20:57 +02:00
Carl-Robert Linnupuu
fe4e02f7f6 Revert "Revert "feat: code completion improvements""
This reverts commit 7f586da0c1.
2024-02-06 02:18:53 +02:00
Carl-Robert Linnupuu
7f586da0c1 Revert "feat: code completion improvements"
This reverts commit abc8dc8d07.
2024-02-05 16:28:18 +02:00
Carl-Robert Linnupuu
abc8dc8d07 feat: code completion improvements
- truncate context when working with bigger files
- fix notification error messages
- other minor fixes
2024-02-05 15:59:49 +02:00
Carl-Robert Linnupuu
f3357ff0a6 docs: update readme 2024-02-04 23:41:16 +02:00
dependabot[bot]
61e35dae7c
chore(deps): bump org.assertj:assertj-core from 3.24.2 to 3.25.2 (#341)
Bumps [org.assertj:assertj-core](https://github.com/assertj/assertj) from 3.24.2 to 3.25.2.
- [Release notes](https://github.com/assertj/assertj/releases)
- [Commits](https://github.com/assertj/assertj/compare/assertj-build-3.24.2...assertj-build-3.25.2)

---
updated-dependencies:
- dependency-name: org.assertj:assertj-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-02 12:25:35 +02:00
Phil
cceba88c35
Allow using existing Llama Server instead of running locally (#345)
* Add setting to use existing Llama server

* minor UI improvements

* support infill template configuration

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-02-02 12:24:41 +02:00
Phil
7387cf4536
Inline Autocompletion Pt.2 (#333)
* Add first draft of inline code completion with mock text

* Adds InsertInlineTextAction for inserting autocomplete suggestion with tab

- Changed to disable suggestions when text is selected
- Adds and removes the insert action based on when it shows the inlay hint

* Request inline code completion

* Move inline completion prompt into txt file

* Add inline completion settings to ConfigurationState

* Fix code style

* Use EditorTrackerListener instead of EditorFactoryListener to enable inline completion

* Code completion requests synchronously without SSE

* Use LlamaClient.getInfill() for inline code completion

* support inlay block element rendering, clean up code

* Use only enclosed Method or Class contents for code completion if possible

* Refactor extracting PsiElement contents in code completion

* bump llm-client

* fix completion call from triggering on EDT, force method params to be nonnull by default

* refactor request building, decrease delay value

* Trigger code completion if cursor is not inside a word

* Improve inlay rendering

* Support cancellable infill requests

* add statusbar widget, disable completions by default

* Show error notification if code completion failed

* Truely disable/enable EditorInlayHandler when completion is turned off/on

* Add CodeCompletionEnabledListener Topic to control enabling/disabling code-completion

* Add progress indicator for code-completion with option to cancel

* Add CodeCompletionServiceTest + refactor inlay ElementRenderers

* several improvements

- replace timer implementation with call debouncing
- use OpenAI /v1/completions API for completions
- code refactoring

* trigger progress indicator only for llama completions

* fix tests

---------

Co-authored-by: James Higgins <james.isaac.higgins@gmail.com>
Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2024-01-31 01:05:31 +02:00
Phil
390d8cdd5e
Add setting for custom LLama server executable (#344) 2024-01-30 11:22:22 +02:00
dependabot[bot]
9ad12f8931
Bump com.github.jelmerk:hnswlib-core from 1.1.0 to 1.1.2 (#325)
Bumps [com.github.jelmerk:hnswlib-core](https://github.com/jelmerk/hnswlib) from 1.1.0 to 1.1.2.
- [Commits](https://github.com/jelmerk/hnswlib/commits/v1.1.2)

---
updated-dependencies:
- dependency-name: com.github.jelmerk:hnswlib-core
  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-01-02 11:58:48 +02:00
dependabot[bot]
fd29cf0230
Bump com.fasterxml.jackson.datatype:jackson-datatype-jsr310 (#315)
Bumps com.fasterxml.jackson.datatype:jackson-datatype-jsr310 from 2.16.0 to 2.16.1.

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jsr310
  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-01-02 11:58:37 +02:00
dependabot[bot]
dee87c0149
Bump com.github.jelmerk:hnswlib-core in /codegpt-core (#326)
Bumps [com.github.jelmerk:hnswlib-core](https://github.com/jelmerk/hnswlib) from 1.1.0 to 1.1.2.
- [Commits](https://github.com/jelmerk/hnswlib/commits/v1.1.2)

---
updated-dependencies:
- dependency-name: com.github.jelmerk:hnswlib-core
  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-01-02 11:58:26 +02:00
dependabot[bot]
78fb10b795
Bump org.jsoup:jsoup from 1.17.1 to 1.17.2 (#317)
Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.17.1 to 1.17.2.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES.md)
- [Commits](https://github.com/jhy/jsoup/compare/jsoup-1.17.1...jsoup-1.17.2)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  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-01-02 11:25:51 +02:00
dependabot[bot]
3a550e2a87
Bump com.fasterxml.jackson.datatype:jackson-datatype-jdk8 (#316)
Bumps com.fasterxml.jackson.datatype:jackson-datatype-jdk8 from 2.16.0 to 2.16.1.

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.datatype:jackson-datatype-jdk8
  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-01-02 11:25:40 +02:00
dependabot[bot]
b4dc59cd4e
Bump com.github.jelmerk:hnswlib-utils in /codegpt-core (#327)
Bumps [com.github.jelmerk:hnswlib-utils](https://github.com/jelmerk/hnswlib) from 1.1.0 to 1.1.2.
- [Commits](https://github.com/jelmerk/hnswlib/commits/v1.1.2)

---
updated-dependencies:
- dependency-name: com.github.jelmerk:hnswlib-utils
  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-01-02 11:25:17 +02:00
Carl-Robert
f831a1facd
feat: add support for auto resolving compilation errors (#318) 2023-12-29 16:41:47 +02:00
Strange Dreams
7031a6dc73
Move the CodeGPT Telemetry settings screen. (#222)
The CodeGPT Telemetry settings screen was previously a 'stand-alone' configuration window under the 'Tools' section of the IDEA settings. Moving it under the parent plugin makes it more apparent and keeps it better organized.
2023-12-21 23:19:44 +02:00
Carl-Robert Linnupuu
695f1658e0 docs: update readme 2023-12-21 22:12:58 +02:00
Carl-Robert Linnupuu
4ab63ca38a Merge branch 'master' of github.com:carlrobertoh/CodeGPT 2023-12-21 21:07:19 +02:00
Carl-Robert Linnupuu
c287128744 2.2.12 2023-12-21 15:26:16 +02:00
Carl-Robert Linnupuu
e230640063 feat: extract llama request settings to its own state, improve UI/UX 2023-12-21 14:46:45 +02:00
dependabot[bot]
ec0b1cc583
Bump actions/upload-artifact from 3 to 4 (#309)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 12:34:30 +02:00
Paolo Inaudi
0edc0455db
Fix license in README.md (#313)
This aligns with the LICENSE file in this repo and on Jetbrains website, and is coherent with https://github.com/carlrobertoh/CodeGPT/issues/275
2023-12-19 12:34:06 +02:00
Aliet Expósito García
9d83107dd5
Add support for some extended parameters of llama.cpp(top_k, top_p, min_p, and repeat_penalty) (#311)
* Add support for some extended parameters of llama.cpp(top_k, top_p, min_p, and repeat_penalty)

Added 'top_k,' 'top_p,' 'min_p,' and 'repeat_penalty' fields to the llama.cpp request configuration. The default values for these fields match the defaults of llama.cpp. If left untouched, they do not affect the model's response to the request.

* Bump llm-client

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2023-12-18 11:53:23 +02:00
Carl-Robert Linnupuu
52c1b5d68c 2.2.11 2023-12-14 15:36:22 +02:00
Carl-Robert Linnupuu
06895364ba feat: throw an error when too many files selected (temp) 2023-12-14 10:17:28 +02:00
Carl-Robert Linnupuu
6824fbeb3b feat: replace editor pane with action links 2023-12-13 16:52:35 +02:00
Carl-Robert Linnupuu
ee4d1e8da6 feat: improve multi-file selection dialog UI 2023-12-13 14:52:59 +02:00
Carl-Robert Linnupuu
56c69f5eeb feat: allow commit message and method name generation with Azure service 2023-12-12 22:46:16 +02:00
Carl-Robert
f4be25bdac
Feature: Support chatting with multiple files (#306)
* Initial implementation

* Refactor UI related classes and organize imports

* Display selected files notification, include the files in the prompt

* feat: store referenced file paths in the messate state

* feat: add selected files accordion

* feat: update UI

* feat: improve file selection

* feat: support prompt template configuration

* fix: token calculation for virtualfile checkbox tree

* refactor: clean up

* refactor: move labels/descriptions to bundle
2023-12-12 22:30:39 +02:00
Carl-Robert Linnupuu
4354000ddb refactor: delete docs 2023-12-12 15:35:15 +02:00
Carl-Robert Linnupuu
02a336ae9c 2.2.10 2023-12-12 10:21:15 +02:00
René
c214b59f55
adds: configuration for the commit-message system prompt (#304)
* adds: configuration for the commit-message system prompt

this will remove the default file and move it to the code to be overwritten if the user chooses to modify the prompt.

* fix: checkstyle

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2023-12-09 14:48:10 +02:00
Carl-Robert Linnupuu
c36d4dd566 fix: redundant chat tab creation on provider change 2023-12-08 03:05:01 +02:00
Carl-Robert Linnupuu
cfe89fccb7 refactor: remove you.com coupon 2023-12-08 02:32:49 +02:00
Carl-Robert Linnupuu
3f57427a45 docs: move assets outside of the repo 2023-12-08 02:22:03 +02:00
Carl-Robert Linnupuu
ffb8299571 fix: azure host and path overriding 2023-12-08 01:03:41 +02:00
Carl-Robert Linnupuu
33ba3a0fd5 feat: add codegpt header value when making calls to azure 2023-12-07 23:16:00 +02:00
Carl-Robert Linnupuu
425b0cd58b refactor: improve llm-client code modularity 2023-12-07 21:48:12 +02:00
Carl-Robert Linnupuu
c0ecce8d45 docs: update readme and image assets 2023-12-05 01:35:38 +02:00
Carl-Robert Linnupuu
06ad159adf fix: JetBrains internal API usage warnings 2023-12-04 21:56:51 +02:00
Carl-Robert Linnupuu
624180a626 2.2.9 2023-12-04 16:45:07 +02:00
Carl-Robert Linnupuu
f557406b96 chore: bump gradle version 2023-12-04 16:39:50 +02:00
dependabot[bot]
1241212b44
Bump actions/setup-java from 3 to 4 (#299)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 11:28:52 +02:00
dependabot[bot]
a3df87f57d
Bump org.jsoup:jsoup from 1.16.2 to 1.17.1 (#294)
Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.16.2 to 1.17.1.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES)
- [Commits](https://github.com/jhy/jsoup/compare/jsoup-1.16.2...jsoup-1.17.1)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 11:28:39 +02:00