TypeSafe: Jev

Decisions
typesafe/jev-latest

Jev. Bedingungen prüfen, Optionen auswählen und Stufen bewerten. Jedes der drei API-Formate unten kann Jev aufrufen. Jev unterstützt Text, JSON-Objekte und Textarrays. Bilder werden nicht unterstützt. Synchrone Aufrufe.

Kontextfenster
64K
Veröffentlicht
2026-09-23
Fähigkeiten
Entscheidungen
Verfügbare Anbieter
TypeSafe
Unterstützte Protokolle
openai

Anbieter

TypeSafeprovider.type: "typesafe"
Eingabe-Tokens
$0.042/M
Ausgabe-Tokens
$0/M
Protokolle
openai/openai/v1/decisions/typesafe/v1/systemone/v1/decisions

Dokumentation

Decisions-Anleitung für Jev: von der ersten Anfrage bis zum Umgang mit Ergebnissen geringer Konfidenz im Produktivbetrieb.

Code-Beispiele

import json
import os
import urllib.request
body = json.loads('''{
"model": "typesafe/jev-latest",
"input": "I was charged twice. Please refund me today.",
"questions": [
{
"type": "predicate",
"name": "urgent",
"instructions": "Is this urgent?"
},
{
"type": "choice",
"name": "department",
"instructions": "Which team should handle this?",
"choices": [
{
"value": "billing",
"description": "Payments and refunds"
},
{
"value": "technical",
"description": "Bugs and outages"
},
{
"value": "other",
"description": "None of the above"
}
]
},
{
"type": "score",
"name": "severity",
"instructions": "How severe is this issue?",
"levels": [
{
"label": "Minor"
},
{
"label": "Workaround available"
},
{
"label": "Fully blocked"
}
]
}
]
}''')
request = urllib.request.Request("https://api.ofox.ai/v1/decisions", data=json.dumps(body).encode(), headers={
"Authorization": "Bearer " + os.environ["OFOXAI_API_KEY"],
"Content-Type": "application/json",
})
with urllib.request.urlopen(request) as response:
print(json.load(response)["answers"])

Häufig gestellte Fragen

TypeSafe: Jev auf Ofox.ai kostet $0.042 pro Million Eingabe-Tokens und $0 pro Million Ausgabe-Tokens. Pay-as-you-go, keine monatlichen Gebühren.