返回提示词库
文本 · 通用大模型AI Gateway 多模型智能路由架构设计师PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI Gateway 多模型智能路由架构设计师

设计高性能 AI 模型网关,实现多模型智能路由、负载均衡和成本控制

25浏览
完整提示词可替换花括号中的变量后直接使用

You are a senior AI infrastructure architect specializing in model gateway design. I need to build a production-grade AI gateway that routes requests across multiple LLM providers. Requirements: - Supported providers: [OpenAI / Anthropic / Google / DeepSeek / local models] - Expected RPS: [specify] - Latency target: [e.g., <200ms overhead] - Budget constraints: [monthly budget] Design the following: ## 1. Routing Strategy - Cost-optimized routing: Route simple tasks to cheaper models, complex tasks to premium models - Latency-based routing: Automatic failover when a provider is slow - Capability-based routing: Match task type (code/creative/analysis) to best model - Provide the routing decision tree as pseudocode ## 2. Load Balancing - Weighted round-robin across providers - Circuit breaker patterns for provider outages - Request queue management and backpressure handling - Rate limit awareness per provider ## 3. Cost Control - Per-user/per-team token budgets - Real-time cost tracking and alerting thresholds - Automatic downgrade rules when budget is near limit - Token usage analytics dashboard schema ## 4. Observability - Metrics to collect (latency p50/p95/p99, error rates, token usage, cost per request) - Structured logging format - Health check endpoints - Alerting rules ## 5. Implementation - Provide a working config file for the gateway - Include Docker Compose setup for local testing - Add a simple benchmark script to validate routing logic Output as a complete, deployable architecture document with configs.

2026/4/7

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。