332 Commits

Author SHA1 Message Date
kagami
e7b3a66ab6 Add range for Context 2024-03-15 16:03:18 +08:00
kagami
6a1fdc829e Use gpt4-turbo for unit_tests as default 2024-03-15 15:21:51 +08:00
boob.yang
ccc1d97c90
Merge pull request #75 from devchat-ai/switch-model
Use env var `DEVCHAT_UNIT_TESTS_USE_USER_MODEL` to switch to user selected model for `/unit_tests`
2024-03-13 14:34:57 +08:00
kagami
c44891a39f Handle token budget when recommend test context 2024-03-13 11:50:27 +08:00
kagami
3b1b24e1b2 Update context size for models 2024-03-13 11:50:27 +08:00
kagami
4b756f7908 Improve the usage of the wrapped api 2024-03-13 11:50:27 +08:00
kagami
48441e2514 Be able to switch between openai api & wrapped api 2024-03-13 11:50:27 +08:00
kagami
bfa4198ba2 Add llm config 2024-03-13 11:50:27 +08:00
Tim
874da1710f
Merge pull request #74 from devchat-ai/refactor/preserve-function-code-docs-#290
Fix Issue with Large Models Dropping Function Code When Adding Docstrings
2024-03-12 18:09:21 +08:00
bobo
7981a7e5bb refactor: Optimize docstring gen without visible code
- Remove references to current visible code in docstring generation
- Ensure large functions retain original code when adding docstrings
- Aim for minimal interference from visible code context in outputs
2024-03-12 16:41:13 +08:00
boob.yang
079faae3a6
Merge pull request #73 from devchat-ai/user-requirements
Allow user to add customized requirements for writing tests
2024-03-12 09:52:54 +08:00
kagami
a55565161c Prevent conflicts between make targets and files 2024-03-12 08:51:33 +08:00
kagami
50ed9b35d1 Update i18n translations 2024-03-12 08:51:33 +08:00
kagami
991267e9d6 Cache user requirement of tests for each repo 2024-03-12 08:51:33 +08:00
kagami
8d32101c80 Allow use to add customized requirements for tests 2024-03-12 08:51:33 +08:00
boob.yang
db6b2f4b4c
Merge pull request #67 from devchat-ai/symbol-context
Add more context for writing tests by analyzing symbols
2024-03-12 07:56:57 +08:00
kagami
1d9cc2f85a Include file path info in Context 2024-03-11 22:18:00 +08:00
kagami
f13ae6530b Fix format issue 2024-03-11 22:18:00 +08:00
kagami
fccfcafe98 Improve finding context by both definition & type definition 2024-03-11 22:18:00 +08:00
kagami
0196eb019f Reorder steps in unit test workflow 2024-03-11 22:18:00 +08:00
kagami
9107b1e963 Use context informations when propose cases 2024-03-11 22:18:00 +08:00
kagami
77dead7745 Add find_def_locations in IDE Service 2024-03-11 22:18:00 +08:00
kagami
26d2a91192 Improve lint issues 2024-03-11 22:18:00 +08:00
kagami
ebbabe321c Integrate finding context in the workflow 2024-03-11 22:18:00 +08:00
kagami
79139fdcc8 Find symbol context using both static analysis and llm recommendation 2024-03-11 22:18:00 +08:00
kagami
01e57e6e48 Add llm assistant to recommend symbol context for testing 2024-03-11 22:18:00 +08:00
kagami
f3a1cd4dee Add symbol utils 2024-03-11 22:18:00 +08:00
kagami
06074e744c Make ide service types hashable 2024-03-11 22:18:00 +08:00
boob.yang
7938975753
Merge pull request #72 from devchat-ai/the-fix-command
Add the fix command
2024-03-11 20:15:31 +08:00
Luo Tim
0addeb462e Add the fix command 2024-03-11 18:57:03 +08:00
boob.yang
cf8ecc7d2f
Merge pull request #71 from devchat-ai/docstring
Improve the prompt of doc comments
2024-03-08 21:22:45 +08:00
Luo Tim
49d3efa5b7 Fix code style 2024-03-08 21:09:10 +08:00
Luo Tim
e320c04eb1 Improve the prompt of doc comments 2024-03-08 19:34:40 +08:00
boob.yang
8d0d1e4f86
Merge pull request #70 from devchat-ai/docstring
Docstring
2024-03-08 13:54:18 +08:00
Luo Tim
d8fe05f4ff Add comments command 2024-03-08 12:11:00 +08:00
Luo Tim
95c29f8aac Add the new /docstring command 2024-03-08 11:28:13 +08:00
Luo Tim
2c7dc280e6 Remove refactor.docstring 2024-03-08 11:27:44 +08:00
boob.yang
18d3c1369e
Merge pull request #69 from devchat-ai/explain-code
Implement explain code workflow
2024-03-08 10:52:18 +08:00
Luo Tim
b903d0fe03 Auto detect language in explain workflow 2024-03-07 10:34:42 +08:00
Luo Tim
f20c258833 Fix key error on explain 2024-03-06 18:06:49 +08:00
Luo Tim
1f541cd4c6 Implement explain code workflow 2024-03-06 09:58:45 +08:00
kagami
84cc241a75
Merge pull request #66 from devchat-ai/feature/add-refactor-workflow
Feature: Add Code Refactoring Commands and Utility Script
2024-02-09 11:15:21 +08:00
bobo
91cea1b59c fix lint error 2024-02-09 11:09:14 +08:00
bobo
62c60a1386 feat: Add refactoring commands and utility script
- Introduced command configurations for code rewriting, docstring optimization, and variable renaming.
- Added a Python utility script for code selection and refactoring operations.
- Implemented functionality to interact with IDE services and apply changes.
2024-02-09 11:04:29 +08:00
kagami
d66ada970b
Merge pull request #65 from devchat-ai/feature/empty-string-check-decorator-#242
Fix: Chat decorator now avoids inserting empty strings
2024-02-05 14:13:00 +08:00
bobo
9e84e88677 fix: Prevent empty string submission in chat decorator
- Added a check to prevent empty strings from being added to the chat
- This ensures no messages with an empty 'content' field are inserted
- Enhances stability and error handling in chat functionality
2024-02-05 12:48:09 +08:00
boob.yang
c6b9ad3e44
Merge pull request #64 from devchat-ai/type-annotation
Improve IDE services with type annotation and casting & Add two interfaces
2024-02-04 09:46:50 +08:00
kagami
ef1c9ef3cb Replace the usage of services functions with IDEService client 2024-02-03 23:43:13 +08:00
kagami
5f1926fcdd Type casting for returns of ide service 2024-02-03 23:15:52 +08:00
kagami
9efc523577 Implement IDEService class 2024-02-03 22:22:42 +08:00