Introducing Presets: 从仪表板管理 LLM 配置!
Introducing Presets: Manage LLM Configs from Your Dashboard!
OpenRouter 正式上线了 Presets 功能。用户现在可以通过仪表板集中管理 LLM 配置,无需再将参数硬编码在应用程序中。此举旨在将 LLM 逻辑集中化,从而帮助开发者更快地进行迭代,并清理冗余代码,提升开发效率。
🚀 Why Use Presets?🛠️ How to Use Presets in API Calls📘 Docs & Details
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-slugWith model override:
model: google/gemini-2.0-flash-001@preset/your-preset-slugUsing the new dedicated field:
preset: your-preset-slug
来源:OpenRouter:Announcements · openrouter.ai