import os, requests
resp = requests.post(
"https://api.orcarouter.ai/v1/systemone",
headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
json={
"model": "typesafe/jev-1.14",
"state": "Help! My payouts have been failing for 3 days.",
"questions": {
"is_urgent": {"type": "noul", "instructions": "Does this convey urgency?"},
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {"billing": "Payments, invoicing, refunds",
"technical": "Bugs, outages, integrations"},
},
"frustration": {
"type": "score",
"instructions": "How frustrated is the customer?",
"criteria": ["Calm", "Frustrated", "Very angry"],
},
},
},
)
print(resp.json()["answers"])| קלט / 1M טוקנים | $0.042 |
|---|---|
| פלט / 1M tokens | $0.042 |
| מטבע | USD |
הערכה מבוססת מחיר מחירון
הערכה בלבד — ספירת הטוקנים בפועל תלויה בטוקנייזר של הספק.
על מה מפתחים מדברים השבוע
@misc{orcarouter_jev_1_14,
title = {typesafe/jev-1.14 API},
author = {typesafe},
year = {n.d.},
howpublished = {OrcaRouter},
url = {https://www.orcarouter.ai/models/typesafe/jev-1.14}
}typesafe. (n.d.). typesafe/jev-1.14 API. OrcaRouter. https://www.orcarouter.ai/models/typesafe/jev-1.14