Linux 软件免费装

Bestony AI Provider for QwenCloud

开发者 bestony
更新时间 2026年11月25日 08:05
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

ai connector vision artificial-intelligence qwen qwencloud

下载

0.0.2

详情介绍:

Adds QwenCloud as a provider for the WordPress AI Client, using its OpenAI-compatible compatible-mode API. The default endpoint is: https://maas.qwencloudapi.com/compatible-mode/v1 The default models are qwen3.7-plus for text and vision, and qwen-image-3.0-pro for image generation.

安装:

  1. Upload the plugin files to /wp-content/plugins/bestony-ai-provider-for-qwencloud/.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to Settings → Connectors, open the QwenCloud card and paste your API key — or define it outside the database (see Configuration).
A QwenCloud account with API access is required. Create a key at https://home.qwencloud.com/api-keys.

升级注意事项:

0.0.2 Renamed plugin to Bestony AI Provider for QwenCloud (bestony-ai-provider-for-qwencloud) and fixed image response error formatting. 0.0.1 Initial release.

常见问题:

Does this plugin work without the PHP AI Client?

No. It requires the PHP AI Client SDK, which is provided by WordPress 7.0 or by the AI plugin. The provider stays silent when the SDK is missing.

Which models are used for text and vision?

The plugin prefers qwen3.7-plus, a 1M-context hybrid-thinking model that also accepts images. The model list is fetched live, and capabilities are derived from the model ID, so newer Qwen3.x models are picked up automatically. Set QWENCLOUD_DEFAULT_MODEL to prefer a different one.

Which models can generate images?

qwen-image-3.0 and qwen-image-3.0-pro. Other image families (Wan, Z-Image) use a different protocol and are declared with no capability, so they never appear as selectable image models.

Why is there no video or audio support?

The AI Client has no unified interface for video, audio, embedding or reranking models, so those models stay in the list with no capability rather than shipping code the SDK never calls.

Why is there no image editing?

Only text-to-image (POST /images/generations) is implemented. QwenCloud's image editing endpoints take a different request shape and are not part of the AI Client's reference-image flow.

Image generation fails with an invalid size

The plugin sends 1664x928 for landscape and 928x1664 for portrait. If your model rejects them, override with QWENCLOUD_SIZE_LANDSCAPE / QWENCLOUD_SIZE_PORTRAIT / QWENCLOUD_SIZE_SQUARE.

A JSON feature fails with a 400 on response_format

That feature asks for a JSON schema response. Try QWENCLOUD_STRUCTURED_OUTPUT=json_object to ask for plain JSON instead, or none to send no response_format at all — the prompt still asks for JSON.

Where is my API key stored?

In the WordPress options table on your own site, under the AI Client's connector option (connectors_ai_qwencloud_api_key), or in an environment variable or PHP constant if you set one. It is never transmitted anywhere except to the QwenCloud API when fulfilling a request.

What data leaves my site?

Only what you send to the AI: your prompts, and whatever the calling plugin or theme adds to them (system instructions, conversation history, tool definitions, a JSON schema, or attached files). See External services below for the exact endpoints.

更新日志:

0.0.2 0.0.1