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 mode imported from sequencer/asl (.github/chatmodes/asl.chatmode.md). Copyright stays with the author.
Build the MLIR project in the mlir folder using cmake -G Ninja -DLLVM_EXTERNAL_LIT=$(which lit) -B build && ninja -C build.
To test the ASL MLIR, you can run the ninja target check-asl-opt via ninja -C build check-asl-opt.
Documentation is located in doc folder, please refer to IR.typ to see how to design IR.
Use it
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 slot
curl -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}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
sequencer-asl-asl-chatmode.ocm.jsonjson
{
"ocm": "1",
"id": "sequencer-asl-asl-chatmode",
"kind": "persona",
"name": "asl",
"description": "Description of the custom chat mode.",
"publisher": "sequencer",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"persona",
"github-chatmodes"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Description of the custom chat mode."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-chatmodes",
"repository": "https://github.com/sequencer/asl",
"path": ".github/chatmodes/asl.chatmode.md",
"ref": "e84cbc88c0e77d29cd970f18be9846367e7fe302",
"url": "https://github.com/sequencer/asl/blob/e84cbc88c0e77d29cd970f18be9846367e7fe302/.github/chatmodes/asl.chatmode.md",
"key": "sequencer/asl/.github/chatmodes/asl.chatmode.md"
},
"tools": [
"changes",
"codebase",
"editFiles",
"extensions",
"fetch",
"findTestFiles",
"githubRepo",
"problems",
"runCommands",
"runTasks",
"search",
"searchResults",
"terminalLastCommand",
"terminalSelection",
"testFailure",
"usages",
"vscodeAPI"
]
},
"instructions": "Build the MLIR project in the `mlir` folder using `cmake -G Ninja -DLLVM_EXTERNAL_LIT=$(which lit) -B build && ninja -C build`.\n\nTo test the ASL MLIR, you can run the ninja target `check-asl-opt` via `ninja -C build check-asl-opt`.\n\nDocumentation is located in `doc` folder, please refer to `IR.typ` to see how to design IR.",
"cost": {
"context_tokens": 81
}
}
Fetch it by URL: GET /api/v1/registry/sequencer-asl-asl-chatmode/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.