Skip to content

About

Resources

Stars

44 stars

Watchers

0 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

solar-mini4-jev

A drop-in wrapper that exposes Upstage Solar Pro4 (default; solar-mini4 optional) through the TypeSafe Jev System One API shape.

POST /v1/systemone
{ "model": "solar-mini4-jev", "state": "...", "questions": { ... } }

Supported question types: noul | choice | score (same schema as Jev).

Try the live API (Vercel)

Hosted BYOK endpoint — no deploy needed to try it:

curl -s https://solar-mini4-jev.vercel.app/v1/systemone \
  -H "Content-Type: application/json" \
  -H "X-Upstage-Api-Key: $UPSTAGE_API_KEY" \
  -d '{
    "model": "solar-mini4-jev",
    "state": "Payment success rate dropped to 12%.",
    "questions": {
      "urgent": {"type": "noul", "instructions": "Should on-call be paged immediately?"}
    }
  }'

Bring your own Upstage API key. The server does not store it.

Benchmarks

benchmark Jev 1.13.0 solar-decide (TBA) solar-mini4 solar-pro4
jev-benchmark: tool-call risk (60) 91.7 88.3 90.0 93.3
classifier-benchmark v1 (78) 97.4 91.0 89.7 97.4
Jevals: HelpSteer2 (300) 38.3 34.7 34.0 41.0
test400 (448) 94.6 93.5 90.8 95.1
total, item-weighted (886) 75.6 73.0 71.4 76.9
p50 latency (measured from Korea) 633ms 324ms 424ms 749ms

* Disclaimer: results use a subset of public Jev benchmarks.

For LLMs

Machine-readable API reference: llms.txt

Docs: https://hunkim.github.io/solar-mini4-jev/

Deploy (Vercel) · BYOK System One

The live API is Bring Your Own Key. The server never stores your Upstage key.

# local
uvicorn server:app --host 0.0.0.0 --port 8092

# call (System One shape)
curl -s https://solar-mini4-jev.vercel.app/v1/systemone \
  -H "Content-Type: application/json" \
  -H "X-Upstage-Api-Key: $UPSTAGE_API_KEY" \
  -d '{
    "model": "solar-mini4-jev",
    "state": "Payment success rate dropped to 12%.",
    "questions": {
      "urgent": {"type": "noul", "instructions": "Should on-call be paged immediately?"}
    }
  }'

Auth headers (any one):

  • X-Upstage-Api-Key: <upstage_key>
  • Authorization: Bearer <upstage_key>

Deploy:

npx vercel@latest --prod

Routes:

  • GET / — scorecard (static)
  • GET /health — liveness
  • POST /v1/systemone — System One API (BYOK)

No UPSTAGE_API_KEY is required in Vercel project env for production BYOK. Optional env only for local/dev convenience.

Quick start

export UPSTAGE_API_KEY=...
pip install -r requirements.txt
uvicorn server:app --host 0.0.0.0 --port 8080
from engine import system_one

out = system_one(
    state="Payment success rate dropped to 12%.",
    questions={"urgent": {"type": "noul", "instructions": "Should on-call be paged immediately?"}},
)
print(out["answers"])

Environment variables:

  • UPSTAGE_API_KEY — Upstage API key (required). solar-pro4 currently resolves to solar-pro4-260806.
  • TYPESAFE_API_KEY — only for calling the real Jev during benchmarks (jev_ref.py, uses jev-latest, which resolved to jev-1.13.0 for this run)
  • SOLAR_MINI_MODEL — base model, default solar-pro4 (solar-mini4 is faster but less accurate)
  • Reasoning is always none; the model answers with a single option letter.

Layout

path description
engine.py Jev System One questions → Solar chat, default solar-pro4 (lettered-option prompt)
server.py FastAPI POST /v1/systemone
jev_ref.py Real Jev client (for comparison)
docs/index.html API usage page (GitHub Pages)

License

Experimental / research code. Do not commit API keys.

About

Resources

Stars

44 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages