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 tokens | $0.042 |
|---|---|
| 輸出 / 1M tokens | $0.042 |
| 貨幣 | USD |
基於標價的估算
僅為估算——實際 Token 數取決於供應商的分詞器。
本週開發者的討論
@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