82 Commits

Author SHA1 Message Date
小石头
19b1280222 Update submodules in gui and workflowsCommands 2024-03-07 18:50:38 +08:00
bobo.yang
8b020ec700 fix: Handle VSCode initialization failure gracefully
- Wrap configuration update calls in try-catch to catch and log errors
- Ensure plugin initialization continues despite non-existent model data
- Log errors using `logger.channel()` for easier debugging and monitoring
2024-03-02 13:10:42 +08:00
Rankin Zheng
d07a8e0c86 chore: Add comments to improve code readability
- Added detailed comments to the isProviderHasSetted function to enhance understandability.
- Ensured comments include a brief description and the return type expectation.
- Aimed to address feedback on code documentation for better maintenance.

Closes #275
2024-02-23 13:02:43 +08:00
bobo.yang
a6cc1b8221 fix: Improve config checks to prevent launch failures
- Added null checks to configuration retrieval to prevent failures
- Ensured default configurations are provided for missing settings
- Modified activation sequence to prevent errors with uninitiated UI utils
2024-02-18 16:33:07 +08:00
bobo.yang
2e607f3bad fix: Ensure devchat subprocesses terminate on IDE close
- Added a deactivate function to handle IDE shutdown events
- Utilize stopDevChatBase to terminate devchat subprocesses
- Included necessary import for the constants module
2024-02-09 09:54:03 +08:00
bobo.yang
2bd5d3ebf8 feat: Implement model default parameter settings
- Define model specific max_input_tokens to prevent overflow errors
- Ensure default token limits are set for each model configuration
- Integrate the default parameter setup within the activation process
2024-02-06 11:31:44 +08:00
bobo.yang
81c0e8be73 refactor: Simplify topic interaction in UI
- Remove topic-related views, commands, and handlers from the codebase
- Refactor code to align with the new unified topic interaction method
- Streamline UI by eliminating unnecessary elements and consolidating views
2024-02-05 11:19:01 +08:00
bobo.yang
0f36d8a855 feat: Add support for new LLM models in VSCode plugin
- Add Model.CodeLlama-70b config settings support
- Implement Model.Mixtral-8x7B and Model.Minimax-abab6 support
- Modify UI and API integration to facilitate new model selections
2024-02-05 11:12:03 +08:00
bobo.yang
59ad9088cd feat: Update devchat-api with latest LLMs
- Remove deprecated 1106 and 16k GPT-3.5 model configs
- Update GPT-3.5 config to latest stable version
- Update Claude, Xinghuo, GLM, ERNIEbot to latest versions
- Adjust default model to Claude 2.1
- Validate and test latest model integrations
2024-02-01 22:39:56 +08:00
Rankin Zheng
73a3acc531
Merge pull request #416 from devchat-ai/feat/uri
Feat/uri
2024-01-24 18:03:34 +08:00
bobo.yang
181fe2ea2a fix: Resolve command execution error in DevChat
- Reordered the registration of CodeLens provider for correctness
2024-01-23 16:09:17 +08:00
smallstone
f2ab969f88 Add registerHandleUri command 2024-01-18 17:52:55 +08:00
bobo.yang
20677fc074 remove invliad model fields 2023-12-28 11:41:31 +08:00
bobo.yang
b734c69d61 set lang config default value 2023-12-27 16:15:39 +08:00
bobo.yang
36a16ccd43 add code lens 2023-12-12 16:39:08 +08:00
bobo.yang
b1af136111 optimize start up for devchat-view 2023-11-30 13:25:18 +08:00
bobo.yang
dc1836510d remove command and action extension 2023-11-29 23:34:15 +08:00
bobo.yang
40e6efef8a clear Command python install functions 2023-11-23 13:02:02 +08:00
bobo.yang
705db54231 support gpt-3.5-turbo-1106 model 2023-11-15 10:09:24 +08:00
bobo.yang
077aeec080 support gpt-4-turbo model 2023-11-14 17:29:54 +08:00
bobo.yang
60906f9509 fix invalid key error 2023-10-26 22:45:31 +08:00
bobo.yang
18e58c53ae remove ask-code icon from status bar 2023-10-12 21:17:41 +08:00
bobo.yang
b4e3f24fdb support code llama model 2023-10-09 08:42:55 +08:00
bobo.yang
d26a446547 support code llama model and starcoder model 2023-10-09 08:42:55 +08:00
bobo.yang
5a25cefbe1 Fix key not found issue 2023-10-09 08:12:51 +08:00
bobo.yang
86f21ef03e support more llm models 2023-09-26 14:46:14 +08:00
bobo.yang
21b07f44db update api key setting 2023-09-22 23:08:19 +08:00
bobo.yang
3d1229784f set claude-2 as default model 2023-09-15 13:28:17 +08:00
bobo.yang
452e8c3757 load api key from command secret and env 2023-09-14 20:17:55 +08:00
bobo.yang
0b4e2c25ed fix getUserAccessKey error 2023-09-14 16:44:41 +08:00
bobo.yang
a2699cfa64 set default model for first install devchat 2023-09-14 16:44:41 +08:00
bobo.yang
78804f3386 add sample config to guide how to config devchat 2023-09-13 10:08:16 +08:00
bobo.yang
dd1bef5539 Add function to update configuration for version 0.9.12
- Added a new function `configUpdateTo_0912` to update the configuration for the 'devchat' extension.
- The function retrieves the 'DevChat', 'Api_Key_OpenAI', and 'API_ENDPOINT' configurations and creates a new configuration object.
- If the 'Model.gpt-4' configuration does not exist and the new configuration object is not empty, it updates the 'Model.gpt-3-5', 'Model.gpt-3-5-16k', and 'Model.gpt-4' configurations.
- The function is called during the activation of the extension.
2023-09-13 10:08:16 +08:00
bobo.yang
650281059c reg command to update valid chat models 2023-09-13 10:08:16 +08:00
bobo.yang
a7bb815df5 Use access key set by command while no valid key 2023-09-13 10:08:16 +08:00
bobo.yang
63fbb1289d Add InstallCommands functionality to DevChat
- Added a new command "InstallCommands" to the package.json file.
- Created a new function "registerInstallCommandsCommand" in commands.ts to handle the execution of the new command.
- The function checks for a directory in the user's home directory, if it exists it performs a git pull, if not it clones a git repository.
- The function is registered in the extension.ts file.
- Added a function "sendCommandListByDevChatRun" in regCommandList.ts to send the command list.
- The new command is executed in the statusBarView.ts file.
- Updated the InputMessage component to register a handler for the 'regCommandList' message.
- Updated the InputStore to handle the new commands and removed the old "regCommandMenus" function.
2023-08-30 16:39:47 +08:00
bobo.yang
9c16bced23 Implement feature toggles for beta commands
- Added feature toggles for beta commands in the package.json file.
- Implemented dynamic registration of commands based on feature toggles.
- Added error messages for users trying to access beta commands without the correct permissions.
- Updated the version of the devchat-ask package based on the feature toggles.
- Created a new featureToggle handler to manage feature toggles.
2023-08-24 10:45:51 +08:00
bobo.yang
6713a98df9 Add commands for DevChat
- Added commands for adding context and summary to DevChat.
- Updated the package.json file to include the new commands.
- Added command handlers for indexing and describing codebase summaries.
- Created a new file, askcode_summary_index.py, for indexing and describing codebase summaries.
- Added a new setting file, _setting_.json, for the summary action in the auto_command workflow.
- Added a new handler file, handler.py, for the summary action in the auto_command workflow.
2023-08-21 11:52:00 +08:00
bobo.yang
6b96d911f0 Implement updateLastModifyTime function and status bar item
- Added a new function updateLastModifyTime in askCodeUtil.ts to update the last modification time of files.
- The function ignores hidden files and directories (those starting with '.').
- The function creates the directory if it does not exist before writing the file.
- Added a new status bar item for AskCode in statusBarView.ts.
- The status bar item checks the indexing status every 10 seconds and updates its tooltip and command accordingly.
2023-08-21 11:52:00 +08:00
bobo.yang
fd011ee265 Added AskCode functionality to DevChat
- Added new settings for Python virtual environment and supported file types in package.json.
- Added new commands for starting and stopping AskCode Index in package.json.
- Registered new 'ask-code' command in CommandManager.
- Registered AskCode Index start and stop commands in extension.ts.
- Added 'askCode' handler in loadHandlers.ts and messageHandler.ts.
- Updated messageHandler to check for '/ask-code' in message text and call 'askCode' command.
2023-08-21 11:52:00 +08:00
bobo.yang
e2e761fd16 Separate handling for OpenAI and DevChat API keys
- Renamed and split the API key settings in package.json into DevChat and OpenAI specific keys.
- Updated the commands for setting API keys to handle OpenAI and DevChat keys separately.
- Modified the ApiKeyManager to handle and validate OpenAI and DevChat keys separately.
- Updated the status bar view to use the DevChat access key command.
- Adjusted the tests to reflect the new handling of API keys.
2023-08-03 15:09:34 +08:00
bobo.yang
892c3638cc Add command to set Python Path in DevChat configuration
- Added a new command 'devchat.PythonPath' in commands.ts.
- This command prompts the user to input a Python Path and updates the DevChat configuration with the provided path.
- The new command is registered in the extension.ts file.
2023-07-06 07:42:44 +08:00
bobo.yang
ba097eab26 add unit tests for src 2023-05-31 16:10:53 +08:00
bobo.yang
82faf14eb6 Separate VSCode from core logic for ISSUE #125
- Extract VSCode-related code from core logic.
- Improve modularity for easier unit testing.
2023-05-31 16:10:53 +08:00
bobo.yang
562a125902 handle vscode 2023-05-31 16:10:53 +08:00
bobo.yang
cad2bbb69d refactor code 2023-05-31 16:10:53 +08:00
bobo.yang
44f3db43b2 Truncate topic label to 20 characters in delete confirmation dialog
- Check if item.label exists and use item.label.label or 'Unknown Topic'.
- Truncate the label to 20 characters and add ellipsis if needed.
- Update the confirmation message to display the truncated label.
2023-05-28 22:01:32 +08:00
bobo.yang
ceafac1362 Add confirmation dialog before deleting a topic
- Replace the previous deleteTopic command with a new callback function.
- Use vscode.window.showWarningMessage to display a confirmation dialog.
- Execute the delete operation only if the user confirms.
2023-05-28 21:46:44 +08:00
bobo.yang
2393091dc1 Add isVersionChangeCompare flag to extension.ts
- Added a new flag isVersionChangeCompare to prevent duplicate version checks.
- Updated the condition to check for version changes only when the flag is false.
2023-05-28 14:30:39 +08:00
bobo.yang
f326cf9ef3 Update key names in secretStorage
- Replace "devchat_version_old" with "DevChatVersionOld".
- Update related variable names and function calls.
2023-05-28 14:03:03 +08:00