Skip to main content

一個在 Thonny IDE 中提供 AI 聊天介面的外掛程式

Project description

Thonny Chatbot Plugin

一個為 Thonny IDE 設計的 AI 聊天介面外掛,讓您可以在 IDE 中直接與 AI 互動並解釋程式碼。

安裝 (Installation)

  1. 開啟 Thonny > 工具 (Tools) > 管理外掛 (Manage plug-ins)...
  2. 搜尋 thonny-chatbot-plugin 並安裝。
  3. 重新啟動 Thonny

設定 (Configuration)

  1. 重新啟動後,點擊頂部選單 AI > Settings...
  2. API URL: 輸入您的 AI 服務端點 (例如 https://api.openai.com/v1 或本地模型的 URL,如 http://localhost:1234/v1)。
  3. API Key: 輸入您的 API 金鑰 (如果您的服務需要)。
  4. Model: 點擊 Refresh Models,然後從下拉選單中選擇一個可用的模型。
  5. 點擊 Save & Close

注意:需要存取一個相容 OpenAI API 標準的服務才能運作。

使用方法 (Usage)

聊天介面 (Chat Interface):

  • 透過 檢視 (View) > AI Chat Interface 開啟視窗。
  • 在底部輸入框輸入文字,按 SendCtrl/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

thonny_chatbot_plugin-0.1.4.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

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

thonny_chatbot_plugin-0.1.4-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file thonny_chatbot_plugin-0.1.4.tar.gz.

File metadata

  • Download URL: thonny_chatbot_plugin-0.1.4.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for thonny_chatbot_plugin-0.1.4.tar.gz
Algorithm Hash digest
SHA256 89c0b90c0852e060faea6ef54e3359021ea76dc5104fea0e48a23defb57bdb6d
MD5 ac37b164dd92f9e31a8c3c8590e85b40
BLAKE2b-256 856b040036bee7212d22aa7d9425456235506cc97e93c06a47602b0c29cad751

See more details on using hashes here.

File details

Details for the file thonny_chatbot_plugin-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for thonny_chatbot_plugin-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1a524da1535b93e6d603ec5366f96391b3ece928267de6dcc9487c7eca7035ca
MD5 d15e9b721b29461921b0e113a1b6dfc3
BLAKE2b-256 d1be39fc7c0d9e8d628629b547f13848a80844c1b5fb860d47e0f3153f579654

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