Skip to main content

OpenAI GPT 助手插件 for Thonny IDE

Project description

Thonny OpenAI GPT 助手插件

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

功能特色

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

安裝方法

方法 1: 手動安裝

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

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

方法 2: 從 PyPI 安裝 (推薦)

  1. 在 Thonny 的工具選單 -> 管理套件 中搜尋 "thonny-openai-gpt" 並安裝

使用方式

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

設定 API 金鑰

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

如何獲取 OpenAI API 金鑰

  1. 前往 OpenAI API 網站
  2. 註冊或登入您的 OpenAI 帳戶
  3. 點擊右上角的「個人資料」圖示,選擇「View API keys」
  4. 點擊「Create new secret key」按鈕
  5. 為您的金鑰命名,然後點擊「Create secret key」
  6. 複製生成的 API 金鑰(請注意,您只能查看一次)
  7. 將此金鑰貼入 Thonny OpenAI GPT 助手插件的設定中

注意:OpenAI API 是一項付費服務,您需要在 OpenAI 平台上設定付款方式。新用戶可能會獲得一定額度的免費使用額度。

系統需求

  • 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.22.tar.gz (9.1 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.22-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thonny_openai_gpt-0.1.22.tar.gz
  • Upload date:
  • Size: 9.1 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.22.tar.gz
Algorithm Hash digest
SHA256 3fd09b6d90a9d9e5922dadabacea228651b46573e89b36d91314bd2f5fa375e7
MD5 f8146c1cecdc7adecee6c94584a8245d
BLAKE2b-256 9708c27bc8d4947ded4d6b00e113deea8df26d28202c9440863928072df7aab9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for thonny_openai_gpt-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 79b7ba85b45f26c15aec2de4425b78f1c99d6f155e23336d262f749466a34dc7
MD5 7c4100d64e69c6008a006278fb7ae177
BLAKE2b-256 b668c15e4b001450565d3ea56f3cd33630de0c4b1f4c874c724c59dc8357f1d1

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