openclaw/extensions
mushuiyu_xydt 0e1ef93e84
fix(minimax): use dedicated image generation endpoint (#61155)
* fix(minimax): use dedicated image generation endpoint

MiniMax image generation uses a dedicated API endpoint
(api.minimax.io/v1/image_generation) that is separate from the
text/chat API endpoint (api.minimax.io/anthropic).

Previously, the resolveMinimaxImageBaseUrl function would extract
the origin from the provider's configured baseUrl. If a user had
configured their baseUrl to the chat endpoint (e.g.,
api.minimax.chat/anthropic), the image generation would incorrectly
use that endpoint, resulting in "invalid api key" errors.

This fix always uses the dedicated image generation endpoint,
ignoring the provider's baseUrl configuration for image generation.

Fixes #61149

* fix(minimax): support CN endpoint for image generation

Respect MINIMAX_API_HOST environment variable to determine whether
to use the global (api.minimax.io) or CN (api.minimaxi.com) endpoint
for image generation.

This ensures that CN users who configure MINIMAX_API_HOST to use
api.minimaxi.com will continue to use the CN endpoint for image
generation, while global users continue to use api.minimax.io.

The original bug was caused by the code extracting the origin from
the provider's configured baseUrl, which could be set to incorrect
endpoints like api.minimax.chat. This fix uses the dedicated image
generation endpoints instead.

Fixes #61149

* fix(minimax): infer CN endpoint from provider config when env is unset

When MINIMAX_API_HOST is not set, fall back to checking the provider's
configured baseUrl to determine whether to use the CN or global image
endpoint. This ensures CN users who went through onboarding (which sets
models.providers.minimax.baseUrl to https://api.minimaxi.com/anthropic)
are correctly routed to the CN image endpoint.

The isMinimaxCnHost check ensures we only use the baseUrl origin for
CN detection - invalid endpoints like api.minimax.chat would not match
minimaxi.com and would correctly fall through to the global default.

Fixes #61149

* test(minimax): cover dedicated image endpoints

* fix(logging): handle context assembly diagnostics

* Revert "fix(logging): handle context assembly diagnostics"

This reverts commit f51d2f7d67f8193268dd37553ac77e80a0423390.

* test(minimax): isolate image endpoint env

* docs(changelog): credit minimax image fix

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-04-25 20:07:52 +01:00
..
acpx fix(acp): pass Codex ACP model thinking overrides 2026-04-25 19:56:03 +01:00
active-memory fix(plugins): honor inferred agent model defaults 2026-04-25 19:40:32 +01:00
alibaba chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
amazon-bedrock chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
amazon-bedrock-mantle chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
anthropic fix(agents): pass Claude system prompt via file 2026-04-25 17:59:25 +05:30
anthropic-vertex chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
arcee chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
bluebubbles chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
bonjour fix(bonjour): suppress ciao cancellation across plugin runtime copies 2026-04-25 11:38:30 -07:00
brave chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
browser fix(browser): avoid restart hint for external profiles 2026-04-25 19:18:06 +01:00
byteplus chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
chutes chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
cloudflare-ai-gateway chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
codex chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
comfy chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
copilot-proxy chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
deepgram chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
deepseek fix(opencode-go): route DeepSeek V4 through OpenAI transport 2026-04-25 18:58:08 +01:00
device-pair refactor(qr): share PNG data URL helpers (#70784) 2026-04-23 15:41:45 -07:00
diagnostics-otel feat(diagnostics-otel): add genai usage span identity 2026-04-25 12:03:10 -07:00
diffs chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
discord feat(discord): allow voice model override 2026-04-25 12:47:46 +01:00
document-extract chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
duckduckgo chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
elevenlabs test(voice): harden live STT transcript checks 2026-04-25 19:36:01 +01:00
exa chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
fal fix(media): preserve oversized video generation delivery 2026-04-25 12:41:43 +01:00
feishu fix(feishu): finish streaming card closeout 2026-04-25 04:04:03 -07:00
firecrawl chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
fireworks chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
github-copilot chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
google fix(google): guard veo rest polling 2026-04-25 11:17:23 +01:00
google-meet fix: improve google meet setup diagnostics 2026-04-25 20:01:24 +01:00
googlechat chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
gradium chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
groq chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
huggingface chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
image-generation-core chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
imessage chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
irc chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
kilocode chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
kimi-coding chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
line chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
litellm feat(litellm): add image generation provider (#70246) 2026-04-25 19:06:51 +01:00
llm-task chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
lmstudio chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
lobster chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
matrix chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
mattermost chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
media-understanding-core refactor(media): move sharp image ops into media runtime (#71519) 2026-04-25 04:31:10 -07:00
memory-core chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
memory-lancedb chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
memory-wiki chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
microsoft chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
microsoft-foundry chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
minimax fix(minimax): use dedicated image generation endpoint (#61155) 2026-04-25 20:07:52 +01:00
mistral chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
moonshot chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
msteams chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
nextcloud-talk chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
nostr chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
nvidia chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
ollama chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
open-prose chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
openai fix: support transparent OpenAI image generation 2026-04-25 19:28:56 +01:00
opencode chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
opencode-go fix(opencode-go): route DeepSeek V4 through OpenAI transport 2026-04-25 18:58:08 +01:00
openrouter chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
openshell chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
perplexity chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
phone-control
qa-channel chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
qa-lab test: stabilize QA session memory ranking 2026-04-25 19:30:28 +01:00
qa-matrix chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
qianfan chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
qqbot test(qqbot): cover voice utility contracts 2026-04-25 12:57:23 +01:00
qwen chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
runway chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
searxng chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
senseaudio feat(media): add voice conversion and speech plugins 2026-04-25 12:12:33 +01:00
sglang chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
shared
signal chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
skill-workshop fix(providers): handle proxied DeepSeek V4 replay 2026-04-25 19:23:15 +01:00
slack chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
speech-core chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
stepfun chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
synology-chat chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
synthetic chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
talk-voice
tavily chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
telegram fix(telegram): frame audio transcripts as untrusted 2026-04-25 17:45:40 +01:00
tencent chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
test-support test: share provider catalog fixtures 2026-04-21 00:32:42 +01:00
thread-ownership refactor(hooks): share live config fallback handling 2026-04-22 21:42:53 -07:00
tlon chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
together chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
tokenjuice chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
tts-local-cli feat(media): add voice conversion and speech plugins 2026-04-25 12:12:33 +01:00
twitch chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
venice fix(providers): handle proxied DeepSeek V4 replay 2026-04-25 19:23:15 +01:00
vercel-ai-gateway chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
video-generation-core chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
vllm chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
voice-call chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
volcengine chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
voyage chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
vydra chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
web-readability chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
webhooks chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
whatsapp fix(whatsapp): send voice note text separately 2026-04-25 18:55:03 +01:00
xai fix(xai): support video reference images 2026-04-25 18:14:51 +01:00
xiaomi chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
zai chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
zalo chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
zalouser chore: bump version to 2026.4.25 2026-04-25 10:31:52 +01:00
.npmignore
AGENTS.md
CLAUDE.md
music-generation-providers.live.test.ts test(extensions): keep generation helper out of discovery 2026-04-20 22:09:16 +01:00
tsconfig.package-boundary.base.json
tsconfig.package-boundary.paths.json
video-generation-providers.live.test.ts test(extensions): keep generation helper out of discovery 2026-04-20 22:09:16 +01:00