[WordPress] 外掛分享: AI Provider for ChatGPT

首頁 › 外掛目錄 › AI Provider for ChatGPT
WordPress 外掛 AI Provider for ChatGPT 的封面圖片
40+
安裝啟用
—
尚無評分
45 天前
最後更新
—
問題解決
WordPress 6.9+ PHP 7.4+ v0.1.4 上架:2026-06-14

內容簡介

AI Provider for ChatGPT 外掛可將 OpenAI 整合至 WordPress,透過 OAuth 令牌認證每個請求,並使用 ChatGPT 模型進行文本生成。此外掛可直接使用連接的 ChatGPT 訂閱進行 API 使用計費,無需單獨的 OpenAI API 帳戶。

【主要功能】
• 支援 ChatGPT 模型的文本生成
• 多輪對話歷史記錄
• 函數調用與工具使用
• 透過 JSON 結構化輸出
• 動態模型發現
• 帳戶連接設定與診斷工具

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「AI Provider for ChatGPT」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

AI Provider for ChatGPT registers OpenAI with the WordPress AI Client and authenticates each request using an OAuth token associated with a ChatGPT account (Free / Plus / Pro). API usage is billed against the connected ChatGPT subscription rather than a separate OpenAI API account.
Any plugin or theme that uses the AI Client can call ChatGPT models the same way it calls Kimi, Google, or Anthropic.
Features:

Text generation with ChatGPT models (GPT-4o, GPT-4.1, o-series, and others exposed by the connected account)
Multi-turn chat history
Function calling and tool use
Structured output via JSON schema
Dynamic model discovery from the connected account
Settings screen for connecting an account, with built-in connection diagnostics

Requirements:

PHP 7.4 or higher, with the sodium and openssl extensions
A ChatGPT Free, Plus, or Pro account (Business / Edu / Enterprise are not supported)
WordPress 7.0+ (AI Client is bundled in core), or WordPress 6.9 with the WordPress/php-ai-client package installed

Privacy & data sharing:
When this plugin is used, prompts and content you send through the AI Client are transmitted to OpenAI’s servers for processing. Review the OpenAI Privacy Policy and Terms of Use before enabling this provider on a production site. See the External services section below for full details on what data is sent and when.
External services
This plugin relies on OpenAI’s online APIs, an external service operated by OpenAI, L.L.C. The connection is required so the WordPress AI Client can authenticate with your ChatGPT account and route requests to ChatGPT models from your site. The plugin contacts two OpenAI-operated domains: auth.openai.com (token refresh) and chatgpt.com (model list and text generation). No data is sent to OpenAI until you connect an account and one of the actions below occurs.
The plugin contacts the following endpoints:

POST https://auth.openai.com/oauth/token — called when the stored access token is about to expire, to obtain a fresh one. The request transmits the OAuth client_id, the refresh token (decrypted only in transit from your WordPress options table), and the refresh_token grant type. No prompt or user content is sent.
GET https://chatgpt.com/backend-api/codex/models — called from the Settings → ChatGPT screen (including the optional diagnostics “remote models” probe) and when the AI Client refreshes its model list. The access token (Authorization header), the ChatGPT-Account-ID header, and a client_version query parameter are sent so OpenAI can return the list of models available to the connected account. No prompt or user content is sent.
POST https://chatgpt.com/backend-api/codex/responses — called whenever any plugin or theme on your site uses the WordPress AI Client to generate text with a ChatGPT model. The request includes the access token, the ChatGPT-Account-ID of the connected account, and the prompt/messages, system instructions, tool definitions, and any other parameters supplied by the calling code (for example, conversation history, JSON schema for structured output, or files attached to the prompt).

Your OAuth tokens are stored encrypted in your site’s WordPress options table and are only transmitted to OpenAI to authenticate the requests above. The plugin does not send your data to any other third-party service.
These services are provided by OpenAI. By connecting an account and using this provider you agree to OpenAI’s terms:

Terms of Use: https://openai.com/policies/terms-of-use/
Privacy Policy: https://openai.com/policies/privacy-policy/

延伸相關外掛

文章
Filter
Mastodon