bobo
82e064b876
Refactor imports and add missing newline at end of file
2024-01-31 13:26:55 +08:00
bobo
ea535717fc
feat: Add DevChat workflow extension API docs
...
- Implemented inline documentation for foundation module functions
- Included docstrings with detailed descriptions and return types
- Functions documented include context retrieval and user input handling
2024-01-31 13:26:55 +08:00
kagami
bcba74375b
Merge pull request #58 from devchat-ai/fix_chunk_content_none
...
Fix empty content issue in create_chat_completion_content function
2024-01-29 17:58:25 +08:00
bobo
c83058cbea
Fix issue with empty content in create_chat_completion_content function
2024-01-29 16:19:31 +08:00
kagami
5d156e55b2
Merge pull request #57 from devchat-ai/fix/windows-module-not-found-error-#226
...
Fix Windows ModuleNotFoundError on unit testing workflow
2024-01-29 12:32:23 +08:00
bobo
e8ab8c46fd
Imported additional modules and removed redundant imports
2024-01-29 09:41:59 +08:00
bobo
15735d7aee
fix: Resolve Windows 'ModuleNotFoundError' in unit testing
...
- Moved 'sys.path.append' lines to the start of 'main.py'
- Ensured correct directory access for unit tests in Windows environment
2024-01-29 09:37:30 +08:00
kagami
2157a823fb
Merge pull request #56 from devchat-ai/fix_openai_key_error
...
Add environment variables for OpenAI API key and base URL
2024-01-26 08:59:34 +08:00
bobo
294c2d1574
Add environment variables for OpenAI API key and base URL
2024-01-25 23:33:34 +08:00
boob.yang
dae577bd0b
Merge pull request #46 from devchat-ai/switch-env-again
...
Revert "Revert "/unit_tests switch to devchat env""
2024-01-25 21:25:53 +08:00
Tim
db9c46d1bf
Merge pull request #55 from devchat-ai/fix_error_keyerror
...
Fix error handling in generate_commit_message_base_diff function
2024-01-25 18:51:24 +08:00
bobo
4a3dfc848f
Fix assert_value syntax error in generate_commit_message_base_diff function
2024-01-25 18:44:09 +08:00
bobo
340c8cbfa9
Fix error handling in generate_commit_message_base_diff function
2024-01-25 18:41:31 +08:00
kagami
491a0d1d77
Revert "Revert "/unit_tests switch to devchat env""
2024-01-25 17:53:47 +08:00
kagami
847576f902
Merge pull request #51 from devchat-ai/hotfix/git-staged-deletion-flag-#197
...
Fix staged file deletion flag display in commit workflow
2024-01-25 17:52:44 +08:00
kagami
be63f25f90
Merge pull request #49 from devchat-ai/bugfix/context-overflow-commit-failure-#189
...
Fix context overflow issue causing commit submission failure
2024-01-25 17:50:43 +08:00
boob.yang
d0fc2a453e
Merge branch 'main' into hotfix/git-staged-deletion-flag-#197
2024-01-24 21:57:33 +08:00
bobo
6f1b5ca2ef
Refactor pipeline imports and function calls
2024-01-24 21:26:11 +08:00
bobo
47887ca6f9
Add pipeline module with retry and exception handling functions
2024-01-24 21:23:44 +08:00
bobo
9aa9c44934
assert response error
2024-01-24 18:03:45 +08:00
bobo
f0ed2a64ee
Fix commit message length limit
2024-01-24 18:01:29 +08:00
bobo
b81624c764
fix: Improve error handling for context overflows
...
- Refactor error output for token limit issues to ensure clarity
- Update the error handling strategy to unify exception responses
- Remove redundant error handling blocks for streamlining
2024-01-24 17:34:27 +08:00
bobo
380e727e61
chore: Validate content length before sending to LLM
...
- Add validation for content length before sending to LLM
- Display an error message if the modified content exceeds the model's length limit
- Exit the program if the content length exceeds the limit
2024-01-24 17:34:27 +08:00
bobo
3d3241f282
chore: Correct lint errors
...
- Refactored language_prompt to handle Chinese characters
- Updated model_token_limit_error message formatting
- Modified function signature for chat_completion_stream
2024-01-24 17:34:27 +08:00
bobo
c805239183
fix: Resolve context overflow commit failure
...
- Updated commit/command.yml to use "en" language code
- Updated commit/commit.py to handle model's maximum context length error
- Updated commit/zh/command.yml to use "zh" language code
- Updated libs/llm_api/openai.py to ignore tokens limit error
Closes devchat-ai/devchat#189
2024-01-24 17:34:27 +08:00
kagami
dbdb1ba29d
Merge pull request #53 from devchat-ai/improve-propose-tests
...
feat: maintain a balance between happy paths and edge cases
2024-01-24 15:14:26 +08:00
Hezheng Yin
d8866a5182
misc: formatting
2024-01-24 15:11:36 +08:00
Hezheng Yin
cd43eb373f
feat: maintain a balance between happy paths and edge cases
2024-01-24 15:10:28 +08:00
kagami
6aaeac784f
Merge pull request #50 from devchat-ai/feature/friendly-commit-warning-#188
...
Improve user interaction for commit errors
2024-01-24 15:08:50 +08:00
bobo
af54106813
fix: Ensure lint error fix
...
- Fixed lint error in commit/commit.py file
- Updated unstaged_files_show assignment for lint compliance
- Updated subprocess.check_output call for lint adherence
2024-01-23 15:47:31 +08:00
bobo
164156bdc0
chore: Add a letter to indicate modification status
...
- Added a letter before each modified file to indicate the modification status
- Updated the workflow to display file deletion flag in 'Staged' files
- Fixed the issue where staged files did not display the git status
2024-01-23 15:42:58 +08:00
bobo
20a94c78f5
feat: Improve commit warning messages
...
- Change error message when no files to commit are found
- Update commit aborted message to be more explicit
- Improve user experience by providing helpful warnings
2024-01-23 14:39:26 +08:00
Henry (Hezheng) Yin
a66d2d33a3
Merge pull request #35 from devchat-ai/user-input-cases
...
Accept user input for test cases
2024-01-18 09:55:13 -08:00
kagami
00f0fa1343
Update i18n for /unit_tests
2024-01-18 15:45:28 +08:00
kagami
685449821f
Accept user cases and print summary of cases and references
2024-01-18 15:45:28 +08:00
kagami
e795e4853e
Split unit_tests workflow into several steps
2024-01-17 18:00:36 +08:00
Tim
d0020e838b
Merge pull request #38 from devchat-ai/revert-37-switch-env
...
Revert "/unit_tests switch to devchat env"
2024-01-17 17:55:52 +08:00
kagami
a5686e759d
Revert "/unit_tests switch to devchat env"
2024-01-17 17:43:25 +08:00
boob.yang
997e631e6c
Merge pull request #37 from devchat-ai/switch-env
...
/unit_tests switch to devchat env
2024-01-17 17:30:25 +08:00
kagami
7c9c9d6574
Remove client property to unbind from openai api
2024-01-17 17:19:12 +08:00
kagami
a0ce83b21c
Update the usage of tiktoken in devchat env
2024-01-17 17:19:12 +08:00
kagami
04c7e6818b
Switch to python for devchat
2024-01-17 17:19:12 +08:00
boob.yang
eb7e756877
Merge pull request #36 from devchat-ai/open-chat
...
Move some code from `chat` to `workflow`
2024-01-17 17:08:35 +08:00
kagami
1974cfea38
Implement other utils in current repo
2024-01-17 15:34:22 +08:00
kagami
1c6f04f6d2
Implement RelevantFileFinder and replace the one from 'chat'
2024-01-17 15:31:21 +08:00
kagami
5f0198d52c
Implement file utils and replace those from 'chat'
2024-01-17 15:31:03 +08:00
boob.yang
6330983635
Merge pull request #5 from devchat-ai/expl-struct
...
Add command to explain repo structure
2024-01-12 12:29:42 +08:00
kagami
4d1fc2fffb
Inactivate expl_struct
2024-01-12 12:22:42 +08:00
kagami
6bf05f9b7d
Use Step() in expl-struct
2024-01-12 12:21:15 +08:00
kagami
8f46b05be9
Support /expl_struct.zh
2024-01-12 12:15:53 +08:00