kagami
2288eb480b
Add type hint for ide services
2024-02-03 00:36:17 +08:00
kagami
c31817f44a
Add type definitions for IDE service
2024-02-03 00:14:37 +08:00
kagami
8d302b1533
Expose get symbols andd find type definitions
2024-02-03 00:13:54 +08:00
boob.yang
82d3fd5055
Merge pull request #63 from devchat-ai/expose-ide-logging
...
Expose ide_logging in ide service
2024-02-02 10:19:36 +08:00
kagami
ea80e1c4a4
Expose ide_logging in ide service
2024-02-02 10:14:32 +08:00
kagami
98e3219bb1
Merge pull request #62 from devchat-ai/api/python-access-raw-vscode-data-#234
...
Implement Python API to Enable Direct Access to Raw VSCode Data
2024-02-01 20:16:50 +08:00
bobo
5a8704a58d
fix lint error
2024-02-01 17:58:23 +08:00
bobo
366b17d092
feat: Add Python API for accessing raw VSCode data
...
- Added vscode_services.py to enable direct access to raw data from VSCode.
- Updated ide_services/services.py to use the new rpc_call function.
- Added vscode_services.py for specific VSCode service functionalities.
2024-02-01 17:46:49 +08:00
kagami
f8d8745231
Merge pull request #61 from devchat-ai/optimize_llm_usage
...
Enhance LLM API with New Features, Refactorings, and Optimizations
2024-01-31 17:11:39 +08:00
bobo
7b6bc1a7bc
Add exception handling decorator to pipeline.py
2024-01-31 16:19:36 +08:00
bobo
7d639f93f4
Refactor llm_api module
2024-01-31 16:15:30 +08:00
bobo
b271a13f66
chore: Optimize LLM API function call handling
...
- Refactored chunks_call to utilize a list of tool calls
- Updated to_dict_content_and_call to handle multiple tool calls
- Enhanced chat_tools to display function call details
2024-01-31 16:14:51 +08:00
bobo
dac115ed32
Refactor llm_api package imports and add new modules
2024-01-31 16:14:51 +08:00
bobo
173fa768e5
Refactor error handling in openai.py
2024-01-31 16:14:51 +08:00
bobo
9a3325469a
feat: Add new LLM API features
...
- Added new chat functionalities for LLM API
- Implemented text confirmation for LLM API
- Updated code for better user interaction
2024-01-31 16:14:51 +08:00
bobo
48b8590ea0
feat: Add new file tools_call.py
...
- Added new file tools_call.py containing functions and decorators
- Implements tool and function schemas for use in the application
- Includes a function to prompt the user to confirm function calls
.
2024-01-31 16:14:51 +08:00
bobo
212537b8a2
chore: Add memory module for LLM API
...
- Added memory module for LLM API
- Implemented ChatMemory and FixSizeChatMemory classes
- Included methods for appending, requesting, and responding to memory
2024-01-31 16:14:51 +08:00
bobo
997c3f86dc
new openai api
2024-01-31 16:14:50 +08:00
bobo
162c545b74
add openai api pipeline.py
2024-01-31 16:14:15 +08:00
bobo
3e93883c4f
feat: Enhance LLM API with new decorators and confirmations
...
- Added new decorators for LLM functions, parameters, and confirmations.
- Introduced confirmation dialogs for calls and edits within LLM interactions.
- Streamlined integration of LLM tool schemas and response handling.
2024-01-31 16:14:15 +08:00
kagami
0b90fe4032
Merge pull request #59 from devchat-ai/handle_openai_apierror
...
Refactor Pipeline Imports and Update Exception Handling in LLM API
2024-01-31 15:23:26 +08:00
bobo
b3c0810e54
Refactor pipeline imports and exception handling
2024-01-31 15:22:19 +08:00
bobo
bde44aa50e
Update exception handling in llm_api/openai.py
2024-01-31 15:22:19 +08:00
kagami
bc44a69125
Merge pull request #60 from devchat-ai/fix/workflow-tiktoken-special-char-error
...
Fix token counting logic in relevant_file_finder.py and propose_test.py
2024-01-31 15:20:41 +08:00
bobo
6f737020fc
Fix token counting in relevant_file_finder.py and propose_test.py
2024-01-31 13:13:16 +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