AI-powered command correction assistant for thefuck
Project description
TheFuck AI Assistant
TheFuck AI Assistant 鏄竴涓熀浜?AI 鐨勫懡浠や慨姝f彃浠讹紝涓?thefuck 宸ュ叿鎻愪緵鏅鸿兘鍛戒护淇鍔熻兘銆?
鍔熻兘鐗圭偣
- 浣跨敤 AI 妯″瀷鍒嗘瀽鍛戒护閿欒骞舵彁渚涗慨澶嶅缓璁?
- 鏀寔澶氱 AI 妯″瀷鍜?API 鏈嶅姟
- 鑷姩鐜妫€娴嬪拰閰嶇疆
- 绠€鍗曟槗鐢ㄧ殑瀹夎鍜岃缃祦绋?
瀹夎
pip install thefuck-ai-assistant
鎴栬€呯洿鎺ヤ粠 GitHub 瀹夎:
pip install git+https://github.com/yourusername/thefuck-ai-assistant.git
鑷姩瀹夎鍜岄厤缃?
瀹夎鍚庯紝杩愯浠ヤ笅鍛戒护瀹屾垚鍒濆鍖栭厤缃?
thefuck-ai-install
姝ゅ懡浠ゅ皢:
- 妫€鏌ユ槸鍚﹀畨瑁呬簡 thefuck
- 鑷姩璇嗗埆鎮ㄧ殑鎿嶄綔绯荤粺
- 灏嗚鍒欐枃浠跺鍒跺埌閫傚綋鐨勪綅缃?
- 甯姪鎮ㄩ厤缃繀瑕佺殑 API 瀵嗛挜鍜岃缃?
鎵嬪姩閰嶇疆
鎮ㄥ彲浠ユ墜鍔ㄨ缃互涓嬬幆澧冨彉閲?
THEFUCK_AI_API_URL: AI API 鐨?URL (榛樿: https://api.siliconflow.cn/v1/chat/completions)THEFUCK_AI_API_KEY: 鎮ㄧ殑 AI API 瀵嗛挜THEFUCK_AI_MODEL: 瑕佷娇鐢ㄧ殑 AI 妯″瀷 (榛樿: Qwen/QwQ-32B)
浣跨敤鏂规硶
瀹夎鍜岄厤缃畬鎴愬悗锛屾甯镐娇鐢?thefuck 鍛戒护鍗冲彲銆傚綋鎮ㄨ緭鍏ラ敊璇懡浠ゅ悗:
$ apt-get install vim # 閿欒鍛戒护
E: Could not open lock file...
$ fuck # 璋冪敤 thefuck
sudo apt-get install vim [enter/鈫?鈫?ctrl+c]
AI Assistant 瑙勫垯灏嗗皾璇曚娇鐢?AI 鏉ュ垎鏋愬拰淇鎮ㄧ殑鍛戒护銆?
璁稿彲璇?
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thefuck_ai_rule-0.1.0.tar.gz.
File metadata
- Download URL: thefuck_ai_rule-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a0bfbd62af66901c334fffa00bd411998f4e250d33a15ec09912a94e51889df
|
|
| MD5 |
c8e64d30f303c3957af51ff8410f8b29
|
|
| BLAKE2b-256 |
9e5f9d6f3f37d5ccea12398badf8c20a98a4cd154291ec181e88c22b0dbe7619
|
File details
Details for the file thefuck_ai_rule-0.1.0-py3-none-any.whl.
File metadata
- Download URL: thefuck_ai_rule-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83d415afd1ae0f5b8af3955964cccdd687c4cf27ece0a1a9e02437726b2716d6
|
|
| MD5 |
67c2720aec014f7d9c4eb408ff80c5a2
|
|
| BLAKE2b-256 |
72586d9cf274238f0fb0d4a8553317546f6ce8c87228b3a8a683404f5d072cfc
|