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 توكن | $0.042 |
| العملة | USD |
تقدير بناءً على السعر المُعلن
تقدير فقط — يعتمد العدد الفعلي للرموز على مُجزّئ الرموز الخاص بالمزوّد.
ما يتحدث عنه المطورون هذا الأسبوع
GET /api/public/models/typesafe/jev-1.14فتح @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