50 Commits

Author SHA1 Message Date
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
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
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
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
c584b186e0 Implement chatmark Step 2024-01-12 11:12:12 +08:00
kagami
bca2507c2f Sort and format import blocks 2024-01-05 12:27:57 +08:00
kagami
56aedf8793 Remove ui_utils/ 2024-01-05 12:24:50 +08:00
bobo
05d8e6dda7 format file 2024-01-05 12:01:01 +08:00
bobo
7d5887e98c refactor: Enhance form and button label flexibility
- Make submit and cancel button labels optional in form and widgets
- Refactor chatmark header construction for conditional button labels
- Implement assertion for Radio widget's default_selected option
2024-01-05 12:01:01 +08:00
bobo
57da9e9841 style: Standardize button label parameters
- Add trailing commas to button name parameters in widgets
- Reformat constructor definitions for consistency
- Clean up unnecessary whitespace in widget render logic
2024-01-05 12:01:01 +08:00
bobo
69e178e7a7 feat: Implement default option selection in Radio
- Introduced the default_selected parameter in the Radio widget
- Updated Radio widget to mark default selected option visually
- Removed TODO comment for the default_selected implementation
2024-01-05 12:01:01 +08:00
bobo
21217d2bb7 feat: Add customizable button labels to forms and widgets
- Form and TextEditor classes now accept submit_button_name and cancel_button_name
- Widget's chatmark header updated with customizable submit and cancel labels
- Adjusted initialization of Checkbox and Radio classes with button label parameters
2024-01-05 12:01:01 +08:00
kagami
75ff48c6bc Support different languages in write_tests 2024-01-04 17:19:08 +08:00
bobo
36fc46212a refactor: Improve user experience and streamline commit workflow
- Simplify and clarify user prompts and output messages
- Remove unnecessary print statements and text
- Handle commit abort and errors more gracefully
- Improve error logging in OpenAI chat stream handler
2024-01-04 10:59:46 +08:00
bobo
4ac2167146 fix: Update type hints in form.py
- Update type hints for components to use Union
- Update type hints for components method to use Union
- Fix python error
2024-01-03 17:32:15 +08:00
bobo
7fbf44cd06 feat: Update chat_completion_stream function signature
- Update the signature of the chat_completion_stream function
- Remove unnecessary line breaks and indents
- Improve code readability and maintainability
2024-01-03 11:20:09 +08:00
bobo
788a6f08f8 fix: Update chat_completion_stream function names
- Update function names in openai.py
- Modify function import in __init__.py
- Update function call in openai.py
2024-01-03 11:08:38 +08:00
bobo
86d087dd12 refactor: Improve readability and syntax in codebase
- Reformatted multiline strings for clarity in commit.py
- Applied consistent quotation marks for string literals in commit.py
- Introduced newlines between rpc_call decorator functions in services.py
2024-01-02 21:37:02 +08:00
bobo
47e2bd9b9b feat: Add stream_out parameter to chat_completion_no_stream
- Add stream_out parameter to chat_completion_no_stream function
- Print delta content when stream_out is True
- Ensure seamless streaming of chat completion response
2024-01-02 21:37:02 +08:00
bobo
6de24f0d06 refactor: Refactor code to remove unused functions
- Removed unused functions `gpt_file_summary`, `gpt_file_group`, `get_file_summaries`, `get_file_summaries_and_groups`, `get_marked_files`, `generate_commit_message_base_file_summaries`
- Updated function `get_marked_files` to accept only `modified_files` and `staged_files`
- Updated function `generate_commit_message_base_diff` to provide a more descriptive start message for the commit workflow
2024-01-02 21:37:02 +08:00
kagami
07a418f239 Update README and TODOs 2024-01-02 11:50:17 +08:00
kagami
11420f7808 Add chatmark_example 2024-01-01 14:45:08 +08:00
kagami
08c001d5be Improve ID management for elements 2024-01-01 14:45:08 +08:00
kagami
7ffb03a857 Implement chatmark Form 2024-01-01 14:29:11 +08:00
kagami
9049046034 Implement chatmark widgets: button, checkbox, text editor, radio 2024-01-01 14:29:10 +08:00
kagami
d84aa2bd15 Init chatmark module 2024-01-01 14:29:10 +08:00
bobo.yang
c052625df2 Add Optional import to single_select.py and text_edit.py 2023-12-21 18:24:03 +08:00
bobo.yang
1f23fd4d86 Fix conditional statement in rpc_call function 2023-12-21 10:42:26 +08:00
bobo.yang
0336bca3b1 Add log_info function to ide_services.services.py 2023-12-20 21:13:05 +08:00
bobo.yang
ba647b967b Fix file path normalization in commit.py and handle API errors in openai.py 2023-12-20 19:14:36 +08:00
bobo.yang
d2aaa48630 Refactor ui_group function to format ui_message as
a chatmark form
2023-12-18 21:06:07 +08:00
bobo.yang
1e8cb3f6f6 Update ui_group function in group.py 2023-12-18 21:06:07 +08:00
bobo.yang
2cf1b0305b Refactor UI group function 2023-12-18 21:06:07 +08:00
bobo.yang
2b74ea0822 reformat 2023-12-18 21:06:07 +08:00
bobo.yang
63ca9b4140 Remove unnecessary print statement in
pipe_interaction function
2023-12-18 21:06:07 +08:00
bobo.yang
e2e0c6b93a add ide service and group ui 2023-12-18 21:06:07 +08:00
bobo.yang
4270dca50f reformat 2023-12-14 11:01:04 +08:00
bobo.yang
6afe1552fb update openai to 1.0 2023-12-14 10:36:24 +08:00
kagami
3f04295b46 Fix lint errors 2023-12-08 18:38:29 +08:00
kagami
82bee7a7de Fix format 2023-12-08 18:38:29 +08:00
bobo.yang
4092985e05 feat: Improve rpc_call error handling
- Updated rpc_call in ide_services to gracefully handle server errors
2023-12-08 11:13:17 +08:00
bobo.yang
c58ef78d52 refactor: Update response format and enhance documentation
- Updated the response format to include file paths in filename keys
- Added docstrings to chat_completion functions for better clarity
2023-12-08 11:08:36 +08:00
bobo.yang
169d02007e refactor: Update LLM configs and add markdown flag removal
- Updated model version in various LLM configs to 'gpt-3.5-turbo-1106'
- Added '_try_remove_markdown_block_flag' function in openai.py
2023-12-08 10:55:48 +08:00
bobo.yang
f3d867623c feat: Integrate LLM API and UI utility functions
- Added new LLM API functions for non-streaming chat completions
- Introduced UI utility functions for input/output interaction
- Implemented multi-select and single-select UI components
2023-12-08 10:37:32 +08:00
bobo.yang
f87a2f7f81 read service url from environ 2023-11-30 07:57:24 +08:00
bobo.yang
1dc2dfdba1 add ide service functions 2023-11-30 07:50:49 +08:00