AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
feat: switch MiniMax image backend to international endpoint and add tests (#52)
ximi152b9219fa64
diff --git a/.env.example b/.env.exampleindex 3e3d6aa9..6e3ac7ab 100644--- a/.env.example+++ b/.env.example@@ -44,7 +44,7 @@# IMAGE_BACKEND=minimax# MINIMAX_API_KEY=your-minimax-key# MINIMAX_MODEL=image-01-# MINIMAX_BASE_URL=https://api.minimaxi.com/v1/image_generation+# MINIMAX_BASE_URL=https://api.minimax.io/v1/image_generation # Override for overseas users / 海外用户覆盖# ─────────────────────────────────────────────────────────────# Example: Qwen / 通义生图示例@@ -88,7 +88,7 @@## MINIMAX_API_KEY=your-minimax-key# MINIMAX_MODEL=image-01-# MINIMAX_BASE_URL=https://api.minimaxi.com/v1/image_generation+# MINIMAX_BASE_URL=https://api.minimax.io/v1/image_generation # Override for overseas users / 海外用户覆盖## SILICONFLOW_API_KEY=your-siliconflow-key# SILICONFLOW_MODEL=Qwen/Qwen-Imagediff --git a/README.md b/README.mdindex 1896c1ce..95cfc8a9 100644--- a/README.md+++ b/README.md@@ -154,7 +154,7 @@ sudo apt install pandoc|------|:------:|-------|| **[Claude Code](https://claude.ai/)** | ⭐⭐⭐ | Best results — native Opus, largest context || [Cursor](https://cursor.sh/) / [VS Code + Copilot](https://code.visualstudio.com/) | ⭐⭐ | Good alternatives |-| Codebuddy IDE | ⭐⭐ | Best for Chinese models (Kimi 2.5, MiniMax 2.7) |+| Codebuddy IDE | ⭐⭐ | Best for Chinese models (Kimi 2.5, MiniMax-M2.7) |### 3. Set Updiff --git a/README_CN.md b/README_CN.mdindex bdf10088..4f7ba2ea 100644--- a/README_CN.md+++ b/README_CN.md@@ -154,7 +154,7 @@ sudo apt install pandoc|------|:------:|------|| **[Claude Code](https://claude.ai/)** | ⭐⭐⭐ | 效果最佳——原生 Opus,上下文最充裕 || [Cursor](https://cursor.sh/) / [VS Code + Copilot](https://code.visualstudio.com/) | ⭐⭐ | 不错的替代方案 |-| Codebuddy IDE | ⭐⭐ | 国产模型最佳选择(Kimi 2.5、MiniMax 2.7) |+| Codebuddy IDE | ⭐⭐ | 国产模型最佳选择(Kimi 2.5、MiniMax-M2.7) |### 3. 配置项目diff --git a/skills/ppt-master/scripts/docs/image.md b/skills/ppt-master/scripts/docs/image.mdindex b7810eff..dce16195 100644--- a/skills/ppt-master/scripts/docs/image.md+++ b/skills/ppt-master/scripts/docs/image.md@@ -66,6 +66,17 @@ Recommendation:- Use Extended only when you need a specific model style- Treat Experimental backends as opt-in+Example `.env` for MiniMax image backend:++```env+IMAGE_BACKEND=minimax+MINIMAX_API_KEY=your-api-key+# Optional: override base URL (defaults to https://api.minimax.io)+# Use https://api.minimaxi.com for domestic (China) access+# MINIMAX_BASE_URL=https://api.minimaxi.com+# MINIMAX_MODEL=image-01+```+## `analyze_images.py`Analyze images in a project directory before writing the design spec or composing slide layouts.diff --git a/skills/ppt-master/scripts/image_backends/backend_minimax.py b/skills/ppt-master/scripts/image_backends/backend_minimax.pyindex 1be33ba2..d8e4cd6e 100644--- a/skills/ppt-master/scripts/image_backends/backend_minimax.py+++ b/skills/ppt-master/scripts/image_backends/backend_minimax.py@@ -30,6 +30,8 @@ from image_backends.backend_common import (DEFAULT_ENDPOINT = "https://api.minimaxi.com/v1/image_generation"DEFAULT_MODEL = "image-01"+# International fallback: set MINIMAX_BASE_URL=https://api.minimax.io if needed+ASPECT_RATIO_SIZE_MAP = {"512px": {"1:1": (512, 512),@@ -75,10 +77,18 @@ ASPECT_RATIO_SIZE_MAP = {def _resolve_url(base_url: str) -> str:- """Resolve the MiniMax image generation endpoint."""+ """Resolve the MiniMax image generation endpoint.++ Accepts three forms of MINIMAX_BASE_URL:+ - Full endpoint: https://api.minimax.io/v1/image_generation → used as-is+ - Versioned base: https://api.minimax.io/v1 → appends /image_generation+ - Root base: https://api.minimax.io → appends /v1/image_generation+ """base = base_url.rstrip("/")if base.endswith("/image_generation"):return base+ if base.endswith("/v1"):+ return base + "/image_generation"return base + "/v1/image_generation"