Answers from the documentation; checking which model is on duty
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.
Imported from vangong1999/screen-creative-skills (category/novel-screening/novel-truncator/SKILL.md). Install upstream with npx skills add vangong1999/screen-creative-skills --skill novel-truncator. Copyright stays with the author (MIT).
文本截断工具(小说版)
功能
接收文本内容与最大长度限制,智能截断文本,保持内容完整性。
使用场景
对长篇小说文本进行预处理,使其符合长度限制。
在不破坏语义完整性的前提下,截取文本片段。
确保输入到其他智能体的文本不超过其处理能力。
截断原则
优先句子结束: 在句号、问号、感叹号处断开。
其次段落结束: 在空格、换行符处断开。
最后指定长度: 确保不超过设定的最大长度限制。
输入要求
文本内容: 待截断的原始文本(字符串)。
最大长度限制: 目标文本的最大字符数(整数)。
截断标记(可选): 用于标识文本截断位置的字符串,如 "[...]"。
输出格式
【文本截断报告】
原始长度:[字符数]
截断后长度:[字符数]
截断位置:[位置描述,如:在第 X 句句号处]
截断后的文本:
[文本内容]
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Installed into a catalogue, chosen by a router
Install novel-truncator and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.