Guides

Jev compatibility

Codiv implements the same wire API as TypeSafe's Jev, so code written for Jev runs against OpenJev with a new base URL and key.

Switching

Set two environment variables. No code changes are needed:

Shell
export TYPESAFE_API_KEY="sk-codiv-..."
export TYPESAFE_BASE_URL="https://api.codiv.ai"

The SDKs' default model, jev-latest, is accepted as an alias for openjev-latest.

What is the same

  • POST /v1/systemone and GET /v1/models, with the same request and response fields.
  • The noul, choice and score question types and their answer shapes, including legend and confidence.
  • The error shapes: validation lists on 422, and {"detail": {"error_type", "message"}} otherwise.
  • The x-typesafe-request-id response header, so SDK request ids keep working.

Differences

  • A choice can have at most 128 options; Jev allows 255.
  • Answers come from a different model, so probabilities will differ. Re-check any thresholds you tuned on Jev.

Codiv and OpenJev are independent projects and are not affiliated with TypeSafe AI. Jev is a model by TypeSafe AI.