OpenRouter 推出 Presets:在仪表盘中管理 LLM 配置
Introducing Presets: Manage LLM Configs from Your Dashboard!
OpenRouter 发布 Presets 功能,可将 LLM 配置与代码分离,在仪表盘中直接创建、管理和更新模型选择、提供商路由、系统提示词及生成参数。调用时可通过 `model: @preset/your-preset-slug`、模型覆盖或新增的 `preset` 字段引用,无需改代码即可 A/B 测试模型或参数、实时更新提示词。
We’re excited to launch Presets, a powerful new feature that lets you separate your LLM configuration from your code!
Create, manage, and update model settings, system prompts, and routing rules directly from your OpenRouter dashboard.
🚀 Why Use Presets?
-
Define model selection, provider routing, system prompts, and generation parameters all in one place.
-
Easily A/B test models or parameters, or update prompts on the fly without code changes.
-
Focus your codebase on product logic while offloading config complexity to your presets.
🛠️ How to Use Presets in API Calls
You can reference presets in a few flexible ways:
-
Directly as a model:
model: @preset/your-preset-slug -
With model override:
model: google/gemini-2.0-flash-001@preset/your-preset-slug -
Using the new dedicated field:
preset: your-preset-slug
📘 Docs & Details
来源:OpenRouter Blog · openrouter.ai