Jev Playground | Open-source decision models on Beam

1 min read Original article ↗

Playground

Compare all the open-source alternatives to Jev, and run any of them as an API.

Loading the model catalog. The request Run will send shows up here.

Call the API

Integrate any open model into your product with our OpenAI-compatible API.

  1. 1
  2. 2

    Put it in your environmentexport BEAM_TOKEN=your_token

  3. 3

    Send the requestThe snippet is the request in the editors above. The response is the same JSON the playground shows.

curl https://app.beam.cloud/v1/models/jev/semif/invoke \
  -H "Authorization: Bearer $BEAM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "jev/semif",
  "state": "My running shoes arrived in the wrong size. Can I swap them for a size 10?",
  "questions": {
    "department": {
      "type": "choice",
      "instructions": "Which team should handle this?",
      "criteria": {
        "returns": "Exchanges, refunds, wrong or damaged items",
        "shipping": "Delivery status, delays, lost packages",
        "billing": "Charges, invoices, payment problems"
      }
    }
  }
}'