外掛說明
ModelTrestle connects the WordPress AI Client to Nano-GPT’s OpenAI-compatible API.
Features:
- Text generation through Nano-GPT’s current text model catalog
- Text-to-image generation through the current image model catalog
- Subscription-included versus paid labels in model selectors
- Model family, release month, and context size in model labels when available
- USD and Nano (XNO) balance display under Settings > Nano-GPT
- Searchable and sortable model catalog with preferred text, vision, and image models
- Optional, privacy-aware local activity logging with source, duration, errors, and token counts
- Native WordPress Connectors configuration
- Automatic provider and model discovery
“Subscription-included” means Nano-GPT reports that a text model is covered by the authenticated account’s subscription. It does not mean universal or unlimited free access. Image models are labeled pay-as-you-go.
This maintained fork preserves the history and credit of Jonathan Bossenger’s original OpenRouter provider.
External services
This plugin connects to Nano-GPT at https://nano-gpt.com/.
It sends the configured API key to retrieve the current text and image model catalogs, classify subscription-included text models, perform generation, and retrieve account balances. Prompts, attachments, generation settings, and generated content are sent when a site feature requests generation. Nano-GPT may send request content to the operator of the selected model.
A Nano-GPT API key is required and can be obtained from https://nano-gpt.com/api.
Nano-GPT API documentation: https://docs.nano-gpt.com/
Nano-GPT terms of service: https://nano-gpt.com/legal/terms-of-service
Nano-GPT privacy policy: https://nano-gpt.com/legal/privacy-policy
安裝方式
- Upload the plugin files to
/wp-content/plugins/modeltrestle-ai-connector-for-nano-gpt/. - Activate the plugin through the Plugins screen.
- Open Settings > Connectors and configure the Nano-GPT API key.
- Open Settings > Nano-GPT to verify the connection and view the balance.
The NANOGPT_API_KEY environment variable or PHP constant can be used instead of storing the key in WordPress.
常見問題集
-
How do I get a Nano-GPT API key?
-
Visit https://nano-gpt.com/api and create an API key.
-
Does “Subscription-included” mean a model is free for everyone?
-
No. It means Nano-GPT lists that text model as included for the API key’s active subscription. Nano-GPT’s plan limits and terms still apply.
-
Where can I see my remaining balance?
-
Open Settings > Nano-GPT. The USD and Nano balances are cached for five minutes; use the refresh button to request a current value.
-
What image operations are supported?
-
The initial release supports text-to-image generation. Image editing and image-to-image workflows are not yet supported.
-
Can I troubleshoot recent Nano-GPT calls?
-
Yes. Open Settings > Nano-GPT > Activity. Logging is disabled by default. When enabled, the plugin stores a bounded local history with model, type, status, duration, token counts, request context, and best-effort caller attribution.
Storing prompts, responses, and generation settings is a separate opt-in because that content may be personal, confidential, or unpublished. API credentials are redacted, inline base64 image data is omitted, and URL query strings are not retained. The default retention is 7 days and 500 calls, and administrators can clear the log at any time. Deleting the plugin removes its activity table and activity settings.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
2.0.0
- Replaced OpenRouter with Nano-GPT text generation and dynamic model discovery.
- Added Nano-GPT text-to-image generation.
- Added subscription-aware billing labels, model family, release month, and context size.
- Added WordPress Connectors integration and account balance display.
- Added preferred-model settings with catalog filtering and sorting.
- Added optional local activity logging with privacy controls, filters, caller attribution, errors, timing, and bounded retention.
- Fixed image size and orientation support for Nano-GPT’s model-specific resolution formats.