14 Commits

Author SHA1 Message Date
bobo.yang
dccc6bbf37 Refactor code for performance optimization and bug fixes 2024-06-06 18:36:08 +08:00
bobo.yang
a05e6caee1 Refactor code to use llmApiBase for completion endpoint 2024-06-04 13:23:42 +08:00
bobo.yang
87178d1e5e chore: Update logger.trace calls to improve code readability 2024-05-18 15:12:32 +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
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
2b505b5536 Refactor DevChatConfig instantiation to use getInstance() method 2024-04-17 00:07:09 +08:00
bobo.yang
560b399933 Fix code completion performance issues 2024-04-15 22:30:46 +08:00
bobo.yang
bd1e2eaa68 feat: Integrate recent files into code completion
- Exported `BLACK_LIST_DIRS` for use in `GitDiffWatcher`
- Implemented `GitDiffWatcher` to monitor file changes and updates
- Enhanced prompt creation with recent edits and git diff context
2024-04-14 23:03:25 +08:00
bobo.yang
fecf077f38 feat: Add task description context to code completion
- Implemented createTaskDescriptionContext to fetch task desc.
- Integrated task description into the prompt generation process.
- Enhanced code completion accuracy by embedding task context.
2024-04-14 18:56:30 +08:00
bobo.yang
e5b6320ecd Find similar code blocks 2024-04-12 15:29:29 +08:00
bobo.yang
de92bf3c85 feat: Optimize AST caching and function lookups
- Improved AST caching mechanism by associating cache entries with filepaths and their content hash for validation.
- Enhanced function range querying by caching query results per file extension to reduce redundant computations.
- Implemented caching for symbol definitions to minimize repetitive AST parsing and query execution, improving overall performance in code completion prompts and context generation.
2024-04-09 22:13:09 +08:00
bobo.yang
37d256a0a1 don't collapse constructor function 2024-04-08 22:56:48 +08:00
bobo.yang
5f113d10a1 code completion for vscode 0.1 2024-04-08 22:10:56 +08:00
bobo.yang
9924472c1a stage changes 2024-04-08 22:10:56 +08:00