Update file opening method for UTF-8 support and add DeepSeek option#234
Open
hc00125 wants to merge 2 commits intohuggingface:mainfrom
Open
Update file opening method for UTF-8 support and add DeepSeek option#234hc00125 wants to merge 2 commits intohuggingface:mainfrom
hc00125 wants to merge 2 commits intohuggingface:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and updates across the codebase, primarily focusing on enhanced support for DeepSeek models, improved file encoding practices, and better cross-platform compatibility for file locking. The most significant changes are grouped below:
1. DeepSeek Model Support and Routing
openai/deepseek-v4-flash,openai/deepseek-v4-pro) to theSUGGESTED_MODELSlist inmodel_switcher.py, making them available for selection._should_replay_thinking_stateto recognize DeepSeek models in addition to Anthropic, ensuring correct handling of replayed thinking metadata.2. File Encoding Consistency
manager.py(_load_system_prompt)session.py(save_trajectory_local,update_local_save_status) [1] [2]session_uploader.py(_write_row_payload,_write_claude_code_payload,_read_session_file,_update_upload_status) [1] [2] [3] [4]3. Cross-Platform File Locking
session_uploader.pyto check for the presence offcntl(which is unavailable on Windows), allowing the code to run on more platforms without errors. [1] [2] [3]4. Testing
test_litellm.pythat loads environment variables and runs a completion using the DeepSeek chat model, verifying integration.