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

首頁外掛目錄 › AI Provider for OpenCode
全新外掛
安裝啟用
尚無評分
7 天前
最後更新
問題解決
WordPress 6.9+ PHP 7.4+ v1.0.0 上架:2026-06-13

內容簡介

AI Provider for OpenCode 外掛為 WordPress 提供與 OpenCode AI 服務的標準溝通方式,無需繁瑣的設定即可輕鬆生成文本、維護聊天歷史及自動發現可用模型,讓網站更具互動性。

【主要功能】
• 文本生成:使用 OpenCode 語言模型創建內容、摘要及分析
• 聊天歷史:維持多次互動的對話上下文
• 動態模型發現:自動從 OpenCode API 獲取可用模型
• 自動提供者註冊:啟用時自動註冊於 PHP AI Client

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

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

原文外掛簡介

The PHP AI Client gives WordPress a standard way to communicate with AI providers, but it needs a provider-specific implementation for each service. This plugin fills that gap for OpenCode: it knows the correct API endpoints, handles authentication, and translates between WordPress and OpenCode’s API so your site can generate text, maintain chat history, and discover available models automatically.
Once activated, the plugin registers itself with the PHP AI Client on WordPress startup. There are no settings screens, no configuration forms, and no manual wiring. It’s intentionally zero-config.
Features

Text Generation — Use OpenCode’s language models for content creation, summarization, analysis, and more.
Chat History — Maintain conversation context across multiple interactions for natural back-and-forth exchanges.
Dynamic Model Discovery — Available models are fetched from the OpenCode API automatically. When OpenCode adds new models, they appear in your site without a plugin update.
Automatic Provider Registration — Registers with the PHP AI Client during WordPress initialization. No setup required.

Requirements

PHP 7.4 or higher (if your host is still on PHP 5.6, I have bad news for you — and it’s not just this plugin that won’t work)
For WordPress 6.9: The wordpress/php-ai-client package needs to be installed separately. Yes, it’s an extra step. Complain to the WP core team, not me.
For WordPress 7.0+: Everything’s built-in. You’re good. Go make a cup of tea.
An OpenCode API key (it’s like a library card, but for AI)

External Services
This plugin talks to OpenCode’s servers. Here’s the boring but legally necessary breakdown:
What gets sent and when:
* Your API key goes with every request so OpenCode knows you’re you.
* Your prompts and messages (the text you ask the AI to process) get sent to OpenCode’s servers. Don’t send anything you wouldn’t want a third party to read.
* A quick model list request happens when the plugin starts up, so it knows what models are available.
* Nothing is sent when you’re not using the AI features. It’s not spying on you. It’s a plugin, not your ex.
Who you’re dealing with:
* Service: OpenCode
* API end point: https://opencode.ai/zen/go/v1
* Terms of service: opencode.ai/terms

延伸相關外掛

文章
Filter
Apply Filters
Mastodon