Skip to main content

OpenAI GPT 助手插件 for Thonny IDE

Project description

Thonny OpenAI GPT 助手插件

這是一個為 Thonny IDE 設計的 OpenAI GPT 助手插件,提供智能聊天和程式碼分析功能。

功能特色

  • 集成 GPT 聊天側邊面板
  • 程式碼分析和建議
  • 可調整的 AI 模型參數
  • 支援 GPT-3.5 和 GPT-4 模型
  • 保存聊天歷史記錄
  • 簡易對話框模式

安裝方法

方法 1: 手動安裝

  1. 將整個 thonny_openai_gpt 目錄複製到以下位置之一:

    • ~/.thonny/plugins/(用戶特定安裝)
    • Thonny 安裝目錄的 Lib/site-packages/ 下(全域安裝)
  2. 重啟 Thonny IDE,插件將自動載入

方法 2: 使用 pip 安裝

  1. 建立 wheel 檔:

    python setup.py bdist_wheel
    
  2. 安裝生成的 wheel 檔:

    
    
  3. 重啟 Thonny IDE

方法 3: 從 PyPI 安裝 (如果已發布)

  1. 在 Thonny 的工具選單 -> 管理套件 中搜尋 "thonny-openai-gpt" 並安裝
  2. 或使用命令行:
    pip3 install -e /Users/oliver/code/thonny_openai_gpt
    

使用方式

  1. 安裝後,您可以在「檢視」選單中找到「GPT聊天」側邊面板
  2. 也可以在「工具」選單中找到「GPT助手(對話框)」選項
  3. 首次使用時,需要設定您的 OpenAI API 金鑰

設定 API 金鑰

  1. 在 GPT 聊天側邊面板中,點擊右上角的 ⚙️ 按鈕
  2. 輸入您的 OpenAI API 金鑰
  3. 金鑰將加密儲存在本地配置檔案中

系統需求

  • Thonny 3.0 或更高版本
  • Python 3.7 或更高版本
  • 網路連接(用於 API 呼叫)
  • OpenAI API 金鑰

授權

MIT License

作者

Oliver0804 - icetzsr@gmail.com

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

thonny_openai_gpt-0.1.14.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thonny_openai_gpt-0.1.14-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file thonny_openai_gpt-0.1.14.tar.gz.

File metadata

  • Download URL: thonny_openai_gpt-0.1.14.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for thonny_openai_gpt-0.1.14.tar.gz
Algorithm Hash digest
SHA256 bc1afc541397a10116aca7da7ceebb81ebd4560045f4355e2cff3f0f1ff7237d
MD5 9794d7ebc1f5473a84fdef2fb93f12ea
BLAKE2b-256 4d71c3513899752de22b90cb52a5ba86c05fb2173b08f799d18c1f3e3b3bc2c5

See more details on using hashes here.

File details

Details for the file thonny_openai_gpt-0.1.14-py3-none-any.whl.

File metadata

File hashes

Hashes for thonny_openai_gpt-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7d6f9af744c4b25e2ed3fa4c33d5d53cd08eccd5925dacd12ace407f7429a166
MD5 192dab78817aafb6287f9da68c6f56ea
BLAKE2b-256 ec4bf980ba44dc5ddbaa0a9d4adc26d63c315a2aff56ac9b004a7fe598a740e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page