21 Commits

Author SHA1 Message Date
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
bca2507c2f Sort and format import blocks 2024-01-05 12:27:57 +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
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.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
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
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