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 fernandoruanb/FT_IRC (.github/chatmodes/c++42.chatmode.md). Copyright stays with the author.
All code need to follow 42 school standards.
Only c++98 is allowed.
Always use the std:: namespace.
Always try to make the code as simple as possible.
It means, avoid big functions, always use small functions that do only one thing.
Always use the std::string type for strings.
Always be careful with memory leaks and segmentation faults. Which means, always check something before using it.
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.
fernandoruanb-ft-irc-c-42-chatmode.ocm.jsonjson
{
"ocm": "1",
"id": "fernandoruanb-ft-irc-c-42-chatmode",
"kind": "persona",
"name": "c++42",
"description": "All code need to follow 42 school standards.",
"publisher": "fernandoruanb",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"persona",
"github-chatmodes"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"All code need to follow 42 school standards."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-chatmodes",
"repository": "https://github.com/fernandoruanb/FT_IRC",
"path": ".github/chatmodes/c++42.chatmode.md",
"ref": "0cab5583e76a824ab992a72d4249c14e34d574c3",
"url": "https://github.com/fernandoruanb/FT_IRC/blob/0cab5583e76a824ab992a72d4249c14e34d574c3/.github/chatmodes/c++42.chatmode.md",
"key": "fernandoruanb/FT_IRC/.github/chatmodes/c++42.chatmode.md"
}
},
"instructions": "All code need to follow 42 school standards.\n\nOnly c++98 is allowed.\n\nAlways use the `std::` namespace.\n\nAlways try to make the code as simple as possible.\nIt means, avoid big functions, always use small functions that do only one thing.\n\nAlways use the `std::string` type for strings.\n\nAlways be careful with memory leaks and segmentation faults. Which means, always check something before using it.",
"cost": {
"context_tokens": 100
}
}
Fetch it by URL: GET /api/v1/registry/fernandoruanb-ft-irc-c-42-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.