一個在 Thonny IDE 中提供 AI 聊天介面的外掛程式
Project description
Thonny Chatbot Plugin
一個為 Thonny IDE 設計的 AI 聊天介面外掛,讓您可以在 IDE 中直接與 AI 互動並解釋程式碼。
安裝 (Installation)
- 開啟 Thonny >
工具 (Tools)>管理外掛 (Manage plug-ins)... - 搜尋
thonny-chatbot-plugin並安裝。 - 重新啟動 Thonny。
設定 (Configuration)
- 重新啟動後,點擊頂部選單
AI>Settings...。 - API URL: 輸入您的 AI 服務端點 (例如
https://api.openai.com/v1或本地模型的 URL,如http://localhost:1234/v1)。 - API Key: 輸入您的 API 金鑰 (如果您的服務需要)。
- Model: 點擊
Refresh Models,然後從下拉選單中選擇一個可用的模型。 - 點擊
Save & Close。
注意:需要存取一個相容 OpenAI API 標準的服務才能運作。
使用方法 (Usage)
聊天介面 (Chat Interface):
- 透過
檢視 (View)>AI Chat Interface開啟視窗。 - 在底部輸入框輸入文字,按
Send或Ctrl/Cmd+Enter發送。 - 點擊
Clear清除當前對話。
解釋選取內容 (Explain Selection):
- 在 編輯器 (Editor) 或 Shell 中選取程式碼或文字。
- 在選取的內容上 按右鍵。
- 選擇
🤖Explain Selection (AI Chat)。 - 解釋結果將顯示在聊天視窗中。
(詳細功能、限制和授權資訊請參考完整版 README 或程式碼註解。)
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 thonny_chatbot_plugin-0.1.2.tar.gz.
File metadata
- Download URL: thonny_chatbot_plugin-0.1.2.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
988b4f297a1300a53f59cd8ea97786f88cf973f18c29af9ccc637aade0d62390
|
|
| MD5 |
d9a144157be97b6463d0410a4f8e463b
|
|
| BLAKE2b-256 |
4520d10173e72263429a93b7c16f1fb5d967fbd154734171118b66ea8a236a5d
|
File details
Details for the file thonny_chatbot_plugin-0.1.2-py3-none-any.whl.
File metadata
- Download URL: thonny_chatbot_plugin-0.1.2-py3-none-any.whl
- Upload date:
- Size: 20.3 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 |
225c60b91644405091300b3c0ba6ff97c3308073f8360a0448e152f450b43fca
|
|
| MD5 |
9fcb804c5f2a4038ef021448707c7589
|
|
| BLAKE2b-256 |
588261873cb19ed3ee0987980a098fe43aae746a468a594d3e02a5af48701485
|