957 Commits

Author SHA1 Message Date
bobo.yang
a8e125afab Refactor messageHandler.ts and workflowContextHandler.ts 2024-06-17 21:33:30 +08:00
bobo.yang
c937e67c70 Refactor historyMessagesBase.ts and handlerRegister.ts 2024-06-17 21:33:30 +08:00
bobo.yang
3589d497f1 fix: Remove default model configuration
- Removed the code that sets the default model in the configuration
- This change is to address the issue where the default model was being incorrectly set
- Simplified the configuration migration process by removing unnecessary steps
2024-06-17 21:14:31 +08:00
bobo.yang
5ec19946d5 Refactor getCurrentFileInfo endpoint and add CORS headers 2024-06-17 09:20:16 +08:00
bobo.yang
2bdf9d01eb feat: Add getCurrentFileInfo and getIDEServicePort handlers
- Added getCurrentFileInfo handler to retrieve the absolute path of the current file
- Added getIDEServicePort handler to retrieve the IDE service port
- Updated fileHandler.ts and handlerRegister.ts to include the new handlers
- Created getCurrentFileInfo.ts in ide_services/endpoints to implement the getCurrentFileInfo handler
- Updated services.ts in ide_services to include the getCurrentFileInfo handler
2024-06-16 22:06:27 +08:00
bobo.yang
3c777f3c19 feat: Add model to completion event
- Added model property to LogEventRequest interface
- Included model in log events sent to server
- Retrieved model from DevChatConfig instance
2024-06-14 14:00:09 +08:00
bobo.yang
cce0020696 Refactor configHandler.ts to read and write YAML configuration files 2024-06-14 13:24:07 +08:00
bobo.yang
0756779a94 Refactor chunkFilter.ts to include CodeCompleteResultWithMeta interface 2024-06-12 14:57:05 +08:00
bobo.yang
28845c47f1 feat: Add IDE and language information to log event requests in InlineCompletionProvider 2024-06-11 12:22:47 +08:00
boob.yang
954a67350e
Merge pull request #551 from devchat-ai/call_diff_event_to_gui
Refactor commands.ts to include MessageHandler for sending a codeDiffApply command
2024-06-07 17:25:04 +08:00
bobo.yang
3209d886e3 Refactor commands.ts to include MessageHandler for sending a codeDiffApply command 2024-06-07 17:22:07 +08:00
bobo.yang
740b27f9be Refactor findFunctionRanges to improve performance and readability 2024-06-06 20:53:30 +08:00
bobo.yang
dccc6bbf37 Refactor code for performance optimization and bug fixes 2024-06-06 18:36:08 +08:00
bobo.yang
a8842848e7 Refactor DevChatConfig.get() method to support default values 2024-06-06 18:35:55 +08:00
bobo.yang
144866dcba Refactor countTokens function to simplify and improve performance 2024-06-06 18:35:43 +08:00
bobo.yang
89f8320253 Refactor code to use "//" as a stop condition for devchatComplete 2024-06-06 18:35:30 +08:00
bobo.yang
a1b10487a3 Refactor LLMStreamComplete to handle empty lines in removeRepeatBlock 2024-06-06 18:35:20 +08:00
bobo.yang
a05e6caee1 Refactor code to use llmApiBase for completion endpoint 2024-06-04 13:23:42 +08:00
bobo.yang
4eea931db1 Refactor LLM code for performance optimization and logging 2024-06-04 08:30:04 +08:00
bobo.yang
091a96e59f chore: Refactor LLMStreamComplete class to improve code readability and maintainability 2024-05-29 15:22:39 +08:00
bobo.yang
ce7f7e7ec8 Refactor DevChat log insertion to handle large values 2024-05-27 13:41:13 +08:00
bobo.yang
e12553f2d7 chore: Optimize code completion performance in InlineCompletionProvider 2024-05-18 16:48:12 +08:00
bobo.yang
c64b755f18 chore: Update logger.channel()?.warn to logger.channel()?.debug in services.ts 2024-05-18 16:06:50 +08:00
bobo.yang
5656f73702 chore: Truncate long command and args in spawnAsync logger message 2024-05-18 16:01:11 +08:00
bobo.yang
87178d1e5e chore: Update logger.trace calls to improve code readability 2024-05-18 15:12:32 +08:00
bobo.yang
214976d4e9 fix: Resolve illegal API base error for custom devchat API base
- Fix devchat API base URL to prevent illegal API base error
- Set default API base URL to https://api.devchat.ai/v1
- Call fixDevChatApiBase function in activate method
2024-05-15 13:49:17 +08:00
bobo.yang
6db623bed8 Refactor workflow base directory name 2024-05-13 21:47:54 +08:00
bobo.yang
0939dcd52f Update MAMBA_BIN_PATH in DevChat class 2024-05-13 21:46:35 +08:00
bobo.yang
60d2c5b808 Update submodules and workflow commands 2024-05-13 21:43:06 +08:00
bobo.yang
dd4afea7ea add DEVCHAT_PROXY env for decvhat commands 2024-05-13 12:46:48 +08:00
bobo.yang
7e4bc4913c update workflow commands 2024-05-13 12:44:08 +08:00
bobo.yang
4b4a575c96 update comments 2024-05-13 12:43:46 +08:00
bobo.yang
0c41673afb remove workspace workflows dir 2024-05-13 12:43:29 +08:00
bobo.yang
34da79b945 copy workflow commands to ~/.chat/scripts 2024-05-13 12:42:26 +08:00
bobo.yang
78ffcea307 remove registerTryWF 2024-05-13 12:41:43 +08:00
kagami
28504933be Update workflow base dir name 2024-05-10 10:53:02 +08:00
kagami
4549fadd98 Add workflow base into default PYTHONPATH for win32 2024-05-09 20:35:57 +08:00
kagami
bbc6c1e4e6 Use a temp command to trigger updating workflows 2024-05-09 20:35:57 +08:00
kagami
66da2dfc80 Add an entrypoint for workflow cli for dev 2024-05-09 20:35:55 +08:00
kagami
4196d902a4 Pass mamba bin path in env var 2024-05-09 20:35:05 +08:00
bobo.yang
be6f8cc888 Update DevChat configuration and GUI submodule commit hash 2024-05-08 15:35:32 +08:00
bobo.yang
470beacf89 fix: Remove DevChat install commands
- Removed DevChat.InstallCommandPython from package.json commands array
- Commented out DevChat.InstallCommandPython execution in statusBarView.ts
- No longer triggers Python command installation in statusBarItem creation
2024-05-07 18:04:23 +08:00
bobo.yang
3f4ff189dd feat: Update model reference and enhance context clarity
- Updated the language model in code completion to starcoder2:15b for improved performance.
- Overhauled prompt creation to include 'recent edit documents', 'task', 'call function define', 'similar blocks', and 'symbol defines' for better context recognition in logs.
- Ensured fallback to 'nvidia/starcoder2:15b' if no model is specified, enhancing reliability.
2024-05-06 14:03:13 +08:00
bobo.yang
a28132f252 fix: Improve NVIDIA parsing under poor connections
- Enhanced parsing logic to handle multiple messages in one go
- Added splitting of incoming data chunks before processing
- Implemented more robust error handling for JSON parsing
2024-04-29 16:36:37 +08:00
bobo.yang
13eaac2953 refactor: Remove installation check process from devchat-commands
- Remove unnecessary installation check codes from devchat-commands
- Streamline setup process for new users
- Maintain application functionality and stability
2024-04-28 23:49:04 +08:00
bobo.yang
b17883c0c5 feat: Optimize devchat code completion config
- Refactor devchat API configuration for clarity and consistency
- Ensure code completion fallbacks to devchat when configured
- Streamline the process for activating devchat server code completion
2024-04-28 23:21:57 +08:00
Rankin Zheng
a6e6400ca5 Update gui version 2024-04-28 22:34:35 +08:00
bobo.yang
0f63d2771f fix: Optimize autocomplete to prevent screen flicker
- Added a preCompletionItem to hold the current autocomplete item
- Refactored how autocomplete items are returned to prevent flickering
- Improved logic to combine current line prefix and response code effectively
2024-04-28 16:27:52 +08:00
bobo.yang
e33559e9a2 feat: Integrate DevChat API for code completion
- Add support for DevChat API as a code completion source
- Implement dynamic model selection for code completions
- Introduce error handling and logging for DevChat API requests
2024-04-23 18:05:20 +08:00
bobo.yang
5ca6a71852 feat: Enhance code completion filtering logic
- Implemented filtering based on comment symbols followed by filenames
- Added filtering for comments indicating omitted code sections
- Adjusted prefix gathering for inline completion to consider previous lines
2024-04-21 17:01:07 +08:00