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"])| Wejście / 1M tokenów | $0.042 |
|---|---|
| Wyjście / 1M tokenów | $0.042 |
| Waluta | USD |
Szacunek na podstawie cennika
Tylko szacunek — rzeczywista liczba tokenów zależy od tokenizatora dostawcy.
O czym mówią programiści w tym tygodniu
GET /api/public/models/typesafe/jev-1.14Otwórz @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