omp packages

@smg1024/jev-router0.1.3

Pi extension that adds a virtual jev/auto model routing each task to a physical model and thinking effort via Jev classification.

GitHub Actions Published 13 days ago MIT ~657 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@smg1024/jev-router

A Pi package that adds a virtual model, jev/auto. For each new user task it asks the Jev classifier (typesafe/jev-latest) to pick:

  • a physical chat model from the eligible catalog, and
  • a thinking effort (off … xhigh).

Continuations, retries, and compaction reuse the previous decision, so a turn stays on one model.

Install

pi install npm:@smg1024/jev-router

Then make jev/auto the default in ~/.pi/agent/settings.json:

{
  "defaultProvider": "jev",
  "defaultModel": "auto"
}

To install from Git instead, use pi install git:github.com/smg1024/jev-router.

Requirements

  • A Typesafe API key for the typesafe/jev-latest classifier. Inside Pi, run /login and choose Typesafe, or set TYPESAFE_API_KEY in your environment.
  • At least one physical chat model with credentials configured.
  • For image prompts, at least one eligible model that accepts image input.

Behavior

Situation Result
New user task Jev picks a model and effort from the eligible catalog
continuation / retry Reuses the previous (or failed) model and effort
direct (internal calls) First eligible model, low effort, no classification
enabledModels / --models set Only those models are eligible
Virtual models (pi-virtual) Never chosen as a target

Errors are raised for: no eligible model, missing classifier, classifier failure, or an invalid classifier choice.

Test

bun run test

The test uses a mock Jev classifier and does not call any API.

License

MIT