Commit graph

86 commits

Author SHA1 Message Date
Carl-Robert Linnupuu
42105bf308 refactor: clean up old code 2024-03-14 14:34:29 +02:00
Carl-Robert Linnupuu
678768c069 fix: intellij platform warning (#400) 2024-03-12 23:13:16 +02:00
Dmitry Melanchenko
12cf5198f8
feat: implement support for You Pro modes (#399)
* Implement support for You Pro modes: Default, Agent, Custom with various 3rd party models and Research

* Update list of You modes/models depending on user having subscription

* add default value for chatMode
2024-03-11 22:25:33 +02:00
Carl-Robert
9706a357d2
feat: support claude completions (#398) 2024-03-06 12:48:29 +02:00
Carl-Robert
8507c779b1
feat: support custom OpenAI-compatible service (#383) 2024-02-23 17:41:44 +02:00
Carl-Robert Linnupuu
d475ddb36f feat: support custom openai model configuration 2024-02-19 00:46:28 +02:00
Carl-Robert Linnupuu
5ea3609a92 fix: build caused by recent merge 2024-02-08 01:08:28 +02:00
Carl-Robert
93145098f5
feat: settings and credentials refactoring (#360)
* refactor service credential managers

* refactor azure settings

* refactor openai settings

* refactor llama settings

* refactor you settings

* refactor included files settings

* refactor general settings

* refactor advanced settings

* fix advanced settings component init

* refactor project structure

* refactor service settings forms

* remove openai quota exceeded field validator

* fix credential modified conditions

* fix and rearrange minor stuff

* fix you auth logic, add credential cache
2024-02-08 01:02:08 +02:00
squall
7c067d9edd
feat: remote server, add template suport for DeepSeek Coder (#352)
* feat: remote server, add template suport for DeepSeek Coder

* fix checkstyle error
2024-02-08 00:56:01 +02:00
Carl-Robert Linnupuu
097f0914bf refactor: extract configuration state into standalone class 2024-02-07 02:13:22 +02:00
Carl-Robert Linnupuu
df14b88617 feat: add the latest OpenAI chat models 2024-02-06 18:49:30 +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
Carl-Robert
f831a1facd
feat: add support for auto resolving compilation errors (#318) 2023-12-29 16:41:47 +02:00
Carl-Robert Linnupuu
6824fbeb3b feat: replace editor pane with action links 2023-12-13 16:52:35 +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
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
425b0cd58b refactor: improve llm-client code modularity 2023-12-07 21:48:12 +02:00
Carl-Robert Linnupuu
dc2cc3c5a1 fix: UI concurrency issues (run completion events on EDT) 2023-12-01 00:32:52 +02:00
Carl-Robert Linnupuu
8d4189c503 Minor clean up 2023-11-26 22:03:49 +02:00
Carl-Robert Linnupuu
01963e2faa Support additional command-line params for the server startup process 2023-11-26 13:21:02 +02:00
Carl-Robert
1df20ccb86
Update toolwindow UI (#290) 2023-11-26 10:52:47 +02:00
Carl-Robert Linnupuu
ac39a863d1 Fix chat response JTextPane caret visibility 2023-11-22 02:10:48 +02:00
Carl-Robert
2317b54d56
272 - Fix editor actions when createNewChatOnEachAction cfg is turned on (#283) 2023-11-22 00:22:36 +02:00
Carl-Robert Linnupuu
ecf6ac02ed Disable tool window chat editor when initially displayed 2023-11-21 23:09:31 +02:00
Carl-Robert Linnupuu
53bdbcd4f5 Remove Quartz Scheduler, You.com model change topic, theme utils, and include other basic refactoring 2023-11-21 22:47:09 +02:00
Carl-Robert
c4115e257b
Add checkstyle rules (#274) 2023-11-16 17:15:11 +02:00
Carl-Robert Linnupuu
318dd4286a Fix minor issues related to total tokens calculation 2023-11-15 00:44:13 +02:00
Carl-Robert Linnupuu
346218b512 Clean up code 2023-11-14 16:20:59 +02:00
Carl-Robert Linnupuu
ec3120a5e6 Add interactive total token count label, codebase refactoring 2023-11-14 13:27:15 +02:00
Carl-Robert Linnupuu
d8e5e18998 Expand/Collapse logic for toolwindow editors 2023-11-10 15:06:22 +02:00
Carl-Robert Linnupuu
c3da76f2bd Clean up BaseChatToolWindowTabPanel code 2023-11-09 18:43:05 +02:00
Carl-Robert
cfa5ff7776
Use enum value to store selected service (#265) 2023-11-08 19:17:25 +02:00
Carl-Robert
1e4c1e3ca9
Bump llm-client, remove credentials validation for llama service (#263) 2023-11-07 16:37:55 +02:00
Carl-Robert
45908e69df
#178 - Add support for running local LLMs via LLaMA C/C++ port (#249)
* Initial implementation of integrating llama.cpp to run LLaMA models locally

* Move submodule

* Copy llama submodule to bundle

* Support for downloading models from IDE

* Code cleanup

* Store port field

* Replace service selection radio group with dropdown

* Add quantization support + other fixes

* Add option to override host

* Fix override host handler

* Disable port field when override host enabled

* Design updates

* Fix llama settings configuration, design changes, clean up code

* Improve You.com coupon design

* Add new Phind model and help tooltip

* Fetch you.com subscription

* Add CodeBooga model, fix downloadable model selection

* Chat history support

* Code refactoring, minor bug fixes

* UI updates, several bug fixes, removed code llama python model

* Code cleanup, enable llama port only on macOS

* Change downloaded gguf models path

* Move some of the labels to codegpt bundle

* Minor fixes

* Remove ToRA model, add help texts

* Fix test

* Modify description
2023-11-03 12:00:24 +02:00
Carl-Robert
3f67be5f78
You.com service updates (#246)
* Free GPT4 for a month to try

* Free GPT4 for a month to try

* Better tooltip

* Replace toggle component with checkbox and other minor ui improvements

* Add UTM and userId params to You.com completion request

* Fix #145 - web serach results not being displayed despite the flag

---------

Co-authored-by: siilats <keith@siilats.com>
2023-10-26 02:13:44 +03:00
keith siilats
4519b2ade6
Make it clear that you.com is free in case people run out of OpenAI credits (#238)
* Make it clear that you.com is free in case people run out of OpenAI credits

* Clear quota exceeded flag on new api key, minor refactoring

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2023-10-17 10:50:20 +03:00
Carl-Robert
21fa61d2af
Support you.com gpt-4 model (#233) 2023-10-12 11:18:37 +03:00
TautCony
0343842af9
set line wrap style to be wrapped at word boundaries (#230) 2023-10-10 23:07:21 +03:00
Carl-Robert
7dfe62b96d
Codebase refactoring (#226)
* Refactor codebase
2023-10-05 02:43:06 +03:00
keith siilats
4c8b8d4e4f
on quota exceeded suggest user switch to different LLM provider (#221)
* on quota exceeded suggest user switch to different LLM provider

* Improve insufficient quota handling, add more telemetry actions

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2023-10-05 00:18:50 +03:00
Carl-Robert Linnupuu
b4881be72a Add default value for destination text field 2023-10-03 00:33:54 +03:00
wangwangxf
8269ba371c
210 - Add diff function (#213)
* Add diff function

* modify writeSpace

* Remove unnecessary code

* Add telemetry for toolwindow editor actions

---------

Co-authored-by: wang <1625116638@qq.com>
Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2023-10-02 11:24:09 +03:00
Carl-Robert
7ff48dc928
Ability to edit generated code (#220)
* Ability to edit generated code inside the chat toolwindow

* Improve icon behaviour

* Fix browseFolderListener automatic disposal by recreating the inputs on each action

* Replace label
2023-10-01 03:59:32 +03:00
Carl-Robert Linnupuu
d85606bfeb Merge branch 'master' of github.com:carlrobertoh/CodeGPT 2023-09-30 02:05:44 +03:00
Carl-Robert
e417ac8a03
Ability to create new files from codegpt toolwindow editor (#219) 2023-09-30 01:40:37 +03:00
Carl-Robert Linnupuu
e95b5ba175 Code refactoring 2023-09-29 11:48:31 +03:00
Carl-Robert Linnupuu
b35daaae88 Fix error logging and add more telemetry actions 2023-09-28 17:08:31 +03:00
Carl-Robert
f502e3b43c
194 - Proper use of project-level light service (#216) 2023-09-28 00:45:10 +03:00
keith siilats
8f9980fbf1
anymous telemetry based on redhat (#212)
* initial telemetry

* fixed segment bugs

* Move telemetry impl to submodule, add more actions

* Replace privacy policy link, minor refactoring

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
2023-09-27 18:44:01 +03:00