01Request
Summarize a support incident log.
POST /v1/chat/completions
X-LineMod-Budget-Max: 0.020
X-LineMod-Tag: support
{
"model": "auto",
"messages": [ … ]
}Change model choice, cost, and backup models without redeploying application code.
Saved changes apply to model "auto" on the next request.
Applies to every API key that has no strategy of its own.
Actual selection depends on the live catalog, prices and quality scores.
All conditions must match; exceptions precede team defaults. The support example below does not match.
Summarize a support incident log.
POST /v1/chat/completions
X-LineMod-Budget-Max: 0.020
X-LineMod-Tag: support
{
"model": "auto",
"messages": [ … ]
}No rule matched.
auto:balanced · From the API key.
claude-sonnet · Within the $0.020 budget.
gpt-4o-mini · Not used.
const client = new OpenAI({
baseURL: "https://api.linemod.ai/v1",
apiKey: process.env.LINEMOD_API_KEY,
});
await client.chat.completions.create({
model: "auto",
messages,
});Set the LineMod endpoint and API key.
Keep chat.completions.create and the same messages format.
Change routing for auto requests without redeploying.
Connect once. Tune cost, quality and backups.