wewrite/config.example.yaml
wangzhuc 0871162634 feat: visual AI overhaul — style anchoring, typed illustrations, 9-provider fallback
- Add visual anchor extraction after cover confirmation for consistent inline images
- Introduce 6 illustration types (infographic/scene/flowchart/comparison/framework/timeline) with structured prompt templates
- Expand image providers from 3 to 9: add DashScope, MiniMax, Replicate, Azure OpenAI, OpenRouter, Jimeng
- Support multi-provider auto-fallback via `image.providers` config (backward-compatible)
- Update SKILL.md Step 6 and environment check for new capabilities

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 23:51:53 +08:00

70 lines
3.7 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# WeWrite 配置
# 复制为 config.yaml 并填入你的信息
# 微信公众号 API发布草稿 + 数据统计必需)
wechat:
appid: "wx_your_appid"
secret: "your_appsecret"
author: "" # 默认署名(可选)
# AI 图片生成
# 支持 9 个 provider配一个就能用配多个自动 fallback。
#
# ┌─────────────────┬────────────────────────────────────────────────┬────────────────────┐
# │ Provider │ 获取 API Key │ 特点 │
# ├─────────────────┼────────────────────────────────────────────────┼────────────────────┤
# │ doubao │ https://console.volcengine.com/ark │ 中文提示词最优 │
# │ dashscope │ https://dashscope.console.aliyun.com/ │ 阿里通义万相 │
# │ jimeng │ https://console.volcengine.com/iam │ 字节即梦,中文强 │
# │ minimax │ https://platform.minimaxi.com/ │ 国内 provider │
# │ openai │ https://platform.openai.com/api-keys │ DALL-E通用性强 │
# │ azure_openai │ Azure Portal │ 国内可访问的 OpenAI│
# │ gemini │ https://aistudio.google.com/apikey │ 免费额度较多 │
# │ openrouter │ https://openrouter.ai/settings/keys │ 多模型代理 │
# │ replicate │ https://replicate.com/account/api-tokens │ 开源模型丰富 │
# └─────────────────┴────────────────────────────────────────────────┴────────────────────┘
#
# 支持两种配置方式:
# 方式一:单 provider简单用法填一个就行
image:
provider: "doubao" # 见上表 Provider 列
api_key: "your_api_key"
# model: "doubao-seedream-5-0-260128" # 可选,各 provider 有默认值
# base_url: "https://ark.cn-beijing.volces.com/api/v3" # 可选
# 方式二:多 provider 自动 fallback推荐
# 按顺序尝试,第一个失败自动切换下一个,不需要全部填写
# image:
# providers:
# - provider: doubao
# api_key: "your_volcengine_key"
# - provider: dashscope
# api_key: "your_dashscope_key"
# # model: "qwen-image-2.0-pro"
# - provider: jimeng
# api_key: "your_access_key_id" # 即梦需要 access_key_id + secret_key
# secret_key: "your_secret_access_key"
# # model: "jimeng_t2i_v40"
# - provider: minimax
# api_key: "your_minimax_key"
# # model: "image-01"
# - provider: openai
# api_key: "sk-..."
# # model: "dall-e-3"
# - provider: azure_openai
# api_key: "your_azure_key"
# base_url: "https://YOUR-RESOURCE.openai.azure.com/openai" # 必填
# # deployment: "dall-e-3"
# - provider: gemini
# api_key: "AIza..."
# # model: "gemini-3.1-flash-image-preview"
# - provider: openrouter
# api_key: "sk-or-..."
# # model: "google/gemini-3.1-flash-image-preview"
# - provider: replicate
# api_key: "r8_..."
# # model: "google/nano-banana-pro"
# 默认排版主题
theme: "professional-clean"