feat(providers): add Evolink image generation provider - #13
Open
EvoLinkAI wants to merge 2 commits into
Open
Conversation
Add dedicated Evolink provider supporting EvoLink's async image generation
API (POST /v1/images/generations → poll GET /v1/tasks/{task_id}).
- New evolink.ts: async submit/poll provider with configurable model, size,
quality; supports EVOLINK_API_KEY env var fallback
- Registry: register 'evolink' type with auto-detection via api.evolink.ai
base URL heuristic; PROVIDER_CONFIG_INVALID creates unavailable provider
Config example:
"evolink": {
"type": "evolink",
"apiKey": "sk-...",
"model": "gpt-image-1.5",
"size": "1024x1024",
"quality": "high"
}
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Author
✅ 真实验证通过用真实 EvoLink API key 跑通了完整的端到端生图流程: curl 直接验证结果:19 次轮询后 Provider 代码端到端本地校验汇总
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Add a dedicated Evolink provider for image generation via EvoLink.ai API.
EvoLink's image API uses an async submit/poll pattern:
POST https://api.evolink.ai/v1/images/generations→ returns taskidGET https://api.evolink.ai/v1/tasks/{task_id}→status+results[]This pattern differs from ClawMate's existing providers (OpenAI-compatible sync, Volcengine ARK sync, Gemini SDK sync), so a dedicated provider is needed — the
http-asyncprovider's hardcoded body format and status values are incompatible with EvoLink's API.Changes (2 files, +329)
src/core/providers/evolink.ts(new)src/core/providers/registry.tsevolinktype + auto-detection viaapi.evolink.aibase URLProvider Features
EVOLINK_API_KEYenvironment variable fallbackbaseUrlcontainingapi.evolink.aiAvailable Models
EvoLink offers 20+ image models via a unified API: GPT Image (1.5/2), Midjourney V7, Nano Banana (Beta/Pro), Qwen Image Edit, Seedream (4.0/4.5/5.0 Lite), WAN 2.5, Z Image Turbo, and more.
Config Example
{ "defaultProvider": "evolink", "providers": { "evolink": { "type": "evolink", "apiKey": "sk-...", "model": "gpt-image-1.5", "size": "1024x1024", "quality": "high" } } }Testing
baseUrlheuristic worksEVOLINK_API_KEYenv var fallback worksnpm run clawmate:plugin:check) passesAPI Documentation
https://api.evolink.aiAuthorization: Bearer ${EVOLINK_API_KEY}🤖 Generated with Claude Code