首页/ AI 技能 / @skilllib/skill-2117939930272417621
Skill站外收录 @skilllib/skill-2117939930272417621

openrouter-model-routing

实现智能模型路由与实验管理,支持按流量比例分配、渐进式发布及基于性能指标的动态选型,适用于大模型服务的灰度验证、效果对比和持续优化场景。

0.0 (0) 22 次安装 原作者 编程导航
收录于 2026-01-22
数据与分析 AI 技能

Skills.MD

# OpenRouter Model Routing ## Overview This skill covers advanced routing patterns including A/B testing, gradual rollouts, and performance-based model selection. ## Prerequisites - OpenRouter integration - Metrics collection capability ## Instructions Follow these steps to implement this skill: 1. **Verify Prerequisites**: Ensure all prerequisites listed above are met 2. **Review the Implementation**: Study the code examples and patterns below 3. **Adapt to Your Environment**: Modify configuration values for your setup 4. **Test the Integration**: Run the verification steps to confirm functionality 5. **Monitor in Production**: Set up appropriate logging and monitoring ## Overview This skill covers advanced routing patterns including A/B testing, gradual rollouts, and performance-based model selection. ## Prerequisites - OpenRouter integration - Metrics collection capability ## Intelligent Model Selection ### Multi-Criteria Router ```python from dataclasses import dataclass from typing import Callable, Optional import re @dataclass class ModelProfile: id: str ## Detailed Reference See `{baseDir}/references/implementation.md` for complete implementation guide.

评论 0

还没有评论,来抢沙发。