OpenAI GPT 助手插件 for Thonny IDE
Project description
Thonny OpenAI GPT 助手插件
這是一個為 Thonny IDE 設計的 OpenAI GPT 助手插件,提供智能聊天和程式碼分析功能。
功能特色
- 集成 GPT 聊天側邊面板
- 程式碼分析和建議
- 可調整的 AI 模型參數
- 支援 GPT-3.5 和 GPT-4 模型
- 保存聊天歷史記錄
- 簡易對話框模式
安裝方法
方法 1: 手動安裝
-
將整個
thonny_openai_gpt目錄複製到以下位置之一:~/.thonny/plugins/(用戶特定安裝)- Thonny 安裝目錄的
Lib/site-packages/下(全域安裝)
-
重啟 Thonny IDE,插件將自動載入
方法 2: 使用 pip 安裝
-
建立 wheel 檔:
python setup.py bdist_wheel
-
安裝生成的 wheel 檔:
-
重啟 Thonny IDE
方法 3: 從 PyPI 安裝 (如果已發布)
- 在 Thonny 的工具選單 -> 管理套件 中搜尋 "thonny-openai-gpt" 並安裝
- 或使用命令行:
pip3 install -e /Users/oliver/code/thonny_openai_gpt
使用方式
- 安裝後,您可以在「檢視」選單中找到「GPT聊天」側邊面板
- 也可以在「工具」選單中找到「GPT助手(對話框)」選項
- 首次使用時,需要設定您的 OpenAI API 金鑰
設定 API 金鑰
- 在 GPT 聊天側邊面板中,點擊右上角的 ⚙️ 按鈕
- 輸入您的 OpenAI API 金鑰
- 金鑰將加密儲存在本地配置檔案中
系統需求
- Thonny 3.0 或更高版本
- Python 3.7 或更高版本
- 網路連接(用於 API 呼叫)
- OpenAI API 金鑰
授權
MIT License
作者
Oliver0804 - icetzsr@gmail.com
Project details
Release history Release notifications | RSS feed
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_openai_gpt-0.1.7.tar.gz.
File metadata
- Download URL: thonny_openai_gpt-0.1.7.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8aaeca7ce6cafbbc933e4d33994bb1343aee717ebc38c2a1a7a299aa0628702
|
|
| MD5 |
47a1017d3701eaaf1d5843e50a55dd39
|
|
| BLAKE2b-256 |
0c47d9400934689b066c6e05c65cf7c343f154944b151bc998695d9ca18ba10a
|
File details
Details for the file thonny_openai_gpt-0.1.7-py3-none-any.whl.
File metadata
- Download URL: thonny_openai_gpt-0.1.7-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
931fc2a154efedd9a8b28adc8c83eb308962522cceb5d809dd94570661dd3ae0
|
|
| MD5 |
6e173bcba62b07c6203dc6c8907e741e
|
|
| BLAKE2b-256 |
ebbcae3c6a0d0c773f007bf8689553b28ce15009af3c1487e7dfe2d45823ab03
|