Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Chat Streaming Contract - Skill - OpenSmartRoute
Skillv1.0.0
Chat Streaming Contract
Use when changing SSE chat streaming, /api/chat, provider integration, frontend stream parsing, or nginx proxying for chat.
Instruction file imported from LittleFogCat/XiaoniuTech (.github/instructions/chat-streaming.instructions.md). Copyright stays with the author.
Chat Streaming Contract
Treat doc/apis/chat.md as the public contract. If the request shape or streamed payload changes, update the doc in the same task.
Repository-level SSE framing, parser alignment and Nginx buffering rules are centralized in doc/convention/README.md. This file keeps the module-scoped change set together.
frontend/src/services/api.js currently parses one JSON object per data: line and yields obj.content. Change the backend emitter and frontend parser together.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/littlefogcat-xiaoniutech-chat-streaming-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.