Linux 软件免费装
Banner图

AI Connector for Token Harbor

开发者 imasikur22
更新时间 2026年12月3日 10:52
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

api ai openai llm connectors

下载

1.0.0

详情介绍:

AI Connector for Token Harbor registers Token Harbor as an AI provider with the WordPress AI Client (WordPress 7+). This is an independent, community plugin. It is not affiliated with, endorsed by, or sponsored by Token Harbor. After activation, open Settings → Connectors, find Token Harbor, and paste your Universal Key (thk_live_…). WordPress AI features that use the AI Client can then route requests through Token Harbor. Token Harbor is a third-party AI gateway (SaaS). This plugin does not include AI models itself. When you configure an API key and run a request, prompt content and related API fields are sent to Token Harbor at https://tokenharbor.ai/. Features External service This plugin connects to Token Harbor (tokenharbor.ai): You need a Token Harbor account and API key. Free-tier and paid usage are governed by Token Harbor, not by this plugin. By configuring your API key and sending requests, you use Token Harbor under their Terms of Service and Privacy Policy. Privacy

安装:

  1. Upload the ai-connector-for-token-harbor folder to /wp-content/plugins/, or install the ZIP via Plugins → Add New → Upload Plugin.
  2. Activate the plugin through the Plugins screen.
  3. Go to Settings → Connectors.
  4. Open Token Harbor and paste your Universal Key from Token Harbor API keys.
  5. Open Token Harbor on the Connectors screen, pick a default model (searchable list loaded from Token Harbor), and save.

常见问题:

Where do I configure the API key?

Settings → Connectors → Token Harbor. That is the WordPress 7 Connectors screen (options-connectors.php).

Where do I choose the default model?

Settings → Connectors → Token Harbor → Edit. After the API key is connected, use the searchable model field (loaded from Token Harbor).

Where do I get an API key?

Sign in at tokenharbor.ai, open the dashboard API keys page, and copy your Universal Key (thk_live_…). See the Quickstart.

What base URL does this use?

https://tokenharbor.ai/v1 (OpenAI-compatible). Filterable via acth_base_url.

How do other plugins use this connector?

```php $response = acth_chat_completion( array( array( 'role' => 'user', 'content' => 'Hello', ), ) ); if ( ! is_wp_error( $response ) ) { $text = acth_get_completion_text( $response ); } ``` You can also use the WordPress AI Client with provider ID token_harbor.

更新日志:

1.0.0