技能 人工智能 OpenRouter 流式响应设置

OpenRouter 流式响应设置

v20260312
openrouter-streaming-setup
该技能指导如何接入 OpenRouter 流式响应,实现实时聊天输出并缩短首令牌时间,涵盖前置条件、配置调整、测试验证和上线监控,适用于支持 SSE 的前端。
获取技能
207 次下载
概览

Openrouter Streaming Setup

Overview

This skill demonstrates streaming response implementation for lower perceived latency and real-time output display.

Prerequisites

  • OpenRouter integration
  • Frontend capable of handling SSE/streaming

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

Output

Successful execution produces:

  • Working OpenRouter integration
  • Verified API connectivity
  • Example responses demonstrating functionality

Error Handling

See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.

Examples

See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.

Resources

信息
Category 人工智能
Name openrouter-streaming-setup
版本 v20260312
大小 6.93KB
更新时间 2026-03-13
语言