Skip to content

🔧 fix(model): enhance Windows model loading with robust path handling #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 4, 2025

Conversation

sudoskys
Copy link
Member

@sudoskys sudoskys commented Mar 4, 2025

  • Improve model loading strategies for Windows compatibility
  • Add multiple fallback mechanisms for loading models with special characters
  • Enhance error logging and temporary file management
  • Optimize path resolution and loading attempts

sudoskys added 2 commits March 4, 2025 09:54
- Improve model loading strategies for Windows compatibility
- Add multiple fallback mechanisms for loading models with special characters
- Enhance error logging and temporary file management
- Optimize path resolution and loading attempts
@sudoskys sudoskys linked an issue Mar 4, 2025 that may be closed by this pull request
sudoskys added 3 commits March 4, 2025 10:03
…handling

- Streamline model loading process with fewer strategies
- Enhance temporary file management using `mkstemp()`
- Improve error logging and file cleanup
- Remove redundant path validation checks
- Optimize Windows temporary file deletion logic
…h test

- Modify test case to explicitly set `allow_fallback=False`
- Improve test configuration for language detection with custom model path
- Enhance test coverage for model loading with Chinese characters
@sudoskys sudoskys merged commit 39426da into main Mar 4, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

win下优化建议
1 participant