Skip to content

Send long prompts to a big-context model

Pro

You’ll get: short requests keep going to your fast everyday models. A request that’s too long for them, such as a whole document, goes straight to a model that can hold it.

You need:

  • A Smart Route.
  • A model with a large context window, local or online.
  1. Open Smart Routes → Routes and click Edit on your route.
  2. Under Rules, click Long prompts to the fallback. Nexus adds a rule: Prompt size is at least 24,000 tokens.
  3. Change the number to suit your everyday models. Use a bit less than their context size.
  4. Under send to, pick the big-context model. Or leave Fallback if your fallback is that model.
  5. Click Save changes.

A rule: when the prompt size is at least 24,000 tokens, send to the fallback, with Check routing below

Rules run before the router, and the first rule that matches wins. A chat that a rule sends somewhere stays there.

  1. In the route editor, under Check routing, set Prompt size to a number above your limit.
  2. Type a short request and press Enter.

Nexus shows that your rule decided, and where the request would go. Nothing is sent to a model.

Then send real traffic and open Smart Routes → Live: requests your rule decided are marked Decided by a rule.

More rules, such as images, tools, time of day or a key’s labels, are in Rules.