docs(web): document Jev usage
This commit is contained in:
parent
83abc64a5c
commit
11be5bc29c
18 changed files with 972 additions and 0 deletions
|
|
@ -143,6 +143,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev هو نموذج System One من TypeSafe AI لاتخاذ قرارات سريعة ومنظّمة. بدلا من إنشاء نص، يقيّم `state` استنادا إلى أسئلة ذات أنواع محددة ويعيد قيما واحتمالات يمكن لكودك استخدامها مباشرة. يدعم أسئلة نعم/لا (`noul`)، والاختيار من متعدد (`choice`)، والأسئلة القائمة على معايير تقييم (`score`).
|
||||
|
||||
استخدم مفتاح API الخاص بـ OpenCode Zen مع نقطة النهاية `https://opencode.ai/zen/v1/systemone`. يتحقق هذا المثال مما إذا كان طلب الدعم عاجلا:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
يمكنك طرح عدة أسئلة في طلب واحد. يقيّمها Jev بالتوازي ويعيد كل إجابة تحت معرّف السؤال المطابق:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
استخدم `jev-1.13-free` بدلا من `jev-1.13` لاستخدام النموذج المجاني المتاح لفترة محدودة. راجع [وثائق TypeSafe AI](https://docs.typesafe.ai/) لمعرفة تفاصيل أنواع الأسئلة وحقول الاستجابة.
|
||||
|
||||
---
|
||||
|
||||
## التسعير
|
||||
|
||||
ندعم نموذج الدفع حسب الاستخدام. فيما يلي الأسعار **لكل 1M tokens**.
|
||||
|
|
|
|||
|
|
@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev je System One model kompanije TypeSafe AI za brzo donošenje strukturiranih odluka. Umjesto generisanja teksta, procjenjuje `state` prema tipiziranim pitanjima i vraća vrijednosti i vjerovatnoće koje vaš kod može direktno koristiti. Podržava da/ne (`noul`), pitanja s višestrukim izborom (`choice`) i pitanja zasnovana na kriterijima ocjenjivanja (`score`).
|
||||
|
||||
Koristite svoj OpenCode Zen API ključ s endpointom `https://opencode.ai/zen/v1/systemone`. Ovaj primjer provjerava da li je zahtjev za podršku hitan:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Možete postaviti više pitanja u jednom zahtjevu. Jev ih procjenjuje paralelno i vraća svaki odgovor pod odgovarajućim ID-om pitanja:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Koristite `jev-1.13-free` umjesto `jev-1.13` za korištenje besplatnog modela dostupnog ograničeno vrijeme. Pogledajte [TypeSafe AI dokumentaciju](https://docs.typesafe.ai/) za detalje o tipovima pitanja i poljima odgovora.
|
||||
|
||||
---
|
||||
|
||||
## Cijene
|
||||
|
||||
Podržavamo pay-as-you-go model. Ispod su cijene **po 1M tokena**.
|
||||
|
|
|
|||
|
|
@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev er en System One-model fra TypeSafe AI til hurtige, strukturerede beslutninger. I stedet for at generere tekst evaluerer den en `state` ud fra typebestemte spørgsmål og returnerer værdier og sandsynligheder, som din kode kan bruge direkte. Den understøtter ja/nej-spørgsmål (`noul`), multiple choice-spørgsmål (`choice`) og kriteriebaserede spørgsmål (`score`).
|
||||
|
||||
Brug din OpenCode Zen API-nøgle med endpointet `https://opencode.ai/zen/v1/systemone`. Dette eksempel kontrollerer, om en supportanmodning haster:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Du kan stille flere spørgsmål i én anmodning. Jev evaluerer dem parallelt og returnerer hvert svar under det tilsvarende spørgsmåls-ID:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Brug `jev-1.13-free` i stedet for `jev-1.13` for at bruge den tidsbegrænsede gratis model. Se [TypeSafe AI-dokumentationen](https://docs.typesafe.ai/) for oplysninger om spørgsmålstyper og svarfelter.
|
||||
|
||||
---
|
||||
|
||||
## Priser
|
||||
|
||||
Vi understøtter en pay-as-you-go-model. Nedenfor er priserne **pr. 1M tokens**.
|
||||
|
|
|
|||
|
|
@ -139,6 +139,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev ist ein System One-Modell von TypeSafe AI für schnelle, strukturierte Entscheidungen. Anstatt Text zu generieren, wertet es einen `state` anhand typisierter Fragen aus und gibt Werte und Wahrscheinlichkeiten zurück, die dein Code direkt verwenden kann. Es unterstützt Ja/Nein-Fragen (`noul`), Multiple-Choice-Fragen (`choice`) und bewertungsbasierte Fragen (`score`).
|
||||
|
||||
Verwende deinen OpenCode Zen API-Key mit dem Endpunkt `https://opencode.ai/zen/v1/systemone`. Dieses Beispiel prüft, ob eine Supportanfrage dringend ist:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Du kannst in einer Anfrage mehrere Fragen stellen. Jev wertet sie parallel aus und gibt jede Antwort unter der zugehörigen Frage-ID zurück:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Verwende `jev-1.13-free` anstelle von `jev-1.13`, um das zeitlich begrenzt kostenlose Modell zu nutzen. Weitere Informationen zu Fragetypen und Antwortfeldern findest du in der [TypeSafe AI-Dokumentation](https://docs.typesafe.ai/).
|
||||
|
||||
---
|
||||
|
||||
## Preise
|
||||
|
||||
Wir unterstützen ein Pay-as-you-go-Modell. Unten findest du die Preise **pro 1M Tokens**.
|
||||
|
|
|
|||
|
|
@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev es un modelo System One de TypeSafe AI para tomar decisiones rápidas y estructuradas. En lugar de generar texto, evalúa un `state` con preguntas tipadas y devuelve valores y probabilidades que tu código puede usar directamente. Admite preguntas de sí/no (`noul`), de opción múltiple (`choice`) y basadas en rúbricas (`score`).
|
||||
|
||||
Usa tu API key de OpenCode Zen con el endpoint `https://opencode.ai/zen/v1/systemone`. Este ejemplo comprueba si una solicitud de soporte es urgente:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Puedes formular varias preguntas en una sola solicitud. Jev las evalúa en paralelo y devuelve cada respuesta bajo el ID de la pregunta correspondiente:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Usa `jev-1.13-free` en lugar de `jev-1.13` para usar el modelo gratuito por tiempo limitado. Consulta la [documentación de TypeSafe AI](https://docs.typesafe.ai/) para obtener más información sobre los tipos de preguntas y los campos de respuesta.
|
||||
|
||||
---
|
||||
|
||||
## Precios
|
||||
|
||||
Admitimos un modelo de pago por uso. A continuación se muestran los precios **por 1M tokens**.
|
||||
|
|
|
|||
|
|
@ -139,6 +139,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev est un modèle System One de TypeSafe AI conçu pour prendre rapidement des décisions structurées. Au lieu de générer du texte, il évalue un `state` à partir de questions typées et renvoie des valeurs et des probabilités directement exploitables par votre code. Il prend en charge les questions oui/non (`noul`), à choix multiples (`choice`) et fondées sur une grille d’évaluation (`score`).
|
||||
|
||||
Utilisez votre clé API OpenCode Zen avec l’endpoint `https://opencode.ai/zen/v1/systemone`. Cet exemple vérifie si une demande d’assistance est urgente :
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Vous pouvez poser plusieurs questions dans une même requête. Jev les évalue en parallèle et renvoie chaque réponse sous l’ID de la question correspondante :
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Utilisez `jev-1.13-free` au lieu de `jev-1.13` pour utiliser le modèle gratuit proposé pour une durée limitée. Consultez la [documentation TypeSafe AI](https://docs.typesafe.ai/) pour en savoir plus sur les types de questions et les champs de réponse.
|
||||
|
||||
---
|
||||
|
||||
## Tarification
|
||||
|
||||
Nous prenons en charge un modèle de paiement à l'utilisation. Vous trouverez ci-dessous les prix **par 1M tokens**.
|
||||
|
|
|
|||
|
|
@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev è un modello System One di TypeSafe AI per decisioni rapide e strutturate. Anziché generare testo, valuta uno `state` rispetto a domande tipizzate e restituisce valori e probabilità che il tuo codice può usare direttamente. Supporta domande sì/no (`noul`), a scelta multipla (`choice`) e basate su rubriche di valutazione (`score`).
|
||||
|
||||
Usa la tua chiave API di OpenCode Zen con l’endpoint `https://opencode.ai/zen/v1/systemone`. Questo esempio verifica se una richiesta di assistenza è urgente:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Puoi porre più domande in un’unica richiesta. Jev le valuta in parallelo e restituisce ogni risposta sotto l’ID della domanda corrispondente:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Usa `jev-1.13-free` invece di `jev-1.13` per usare il modello gratuito disponibile per un periodo limitato. Consulta la [documentazione di TypeSafe AI](https://docs.typesafe.ai/) per maggiori dettagli sui tipi di domande e sui campi di risposta.
|
||||
|
||||
---
|
||||
|
||||
## Prezzi
|
||||
|
||||
Supportiamo un modello pay-as-you-go. Qui sotto trovi i prezzi **per 1M token**.
|
||||
|
|
|
|||
|
|
@ -139,6 +139,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev は、高速で構造化された意思決定を行う TypeSafe AI の System One モデルです。テキストを生成する代わりに、型付きの質問に照らして `state` を評価し、コードで直接利用できる値と確率を返します。はい/いいえ(`noul`)、選択式(`choice`)、ルーブリック評価(`score`)の質問をサポートしています。
|
||||
|
||||
OpenCode Zen API キーを `https://opencode.ai/zen/v1/systemone` エンドポイントで使用します。次の例では、サポートリクエストが緊急かどうかを確認します。
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
1 回のリクエストで複数の質問を行えます。Jev はそれらを並列に評価し、対応する質問 ID ごとに回答を返します。
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
期間限定の無料モデルを使用するには、`jev-1.13` の代わりに `jev-1.13-free` を使用します。質問の種類とレスポンスフィールドの詳細については、[TypeSafe AI ドキュメント](https://docs.typesafe.ai/)を参照してください。
|
||||
|
||||
---
|
||||
|
||||
## 価格
|
||||
|
||||
従量課金制をサポートしています。以下は **100万トークンあたり** の価格です。
|
||||
|
|
|
|||
|
|
@ -139,6 +139,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev는 빠르고 구조화된 의사 결정을 위한 TypeSafe AI의 System One 모델입니다. 텍스트를 생성하는 대신, 형식이 지정된 질문을 기준으로 `state`를 평가하고 코드에서 바로 사용할 수 있는 값과 확률을 반환합니다. 예/아니요(`noul`), 객관식(`choice`), 평가 기준 기반(`score`) 질문을 지원합니다.
|
||||
|
||||
OpenCode Zen API 키를 `https://opencode.ai/zen/v1/systemone` 엔드포인트에 사용하세요. 다음 예시는 지원 요청이 긴급한지 확인합니다.
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
한 번의 요청으로 여러 질문을 할 수 있습니다. Jev는 질문을 병렬로 평가하고 각 답변을 해당 질문 ID 아래에 반환합니다.
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
한정 기간 무료 모델을 사용하려면 `jev-1.13` 대신 `jev-1.13-free`를 사용하세요. 질문 유형과 응답 필드에 대한 자세한 내용은 [TypeSafe AI 문서](https://docs.typesafe.ai/)를 참조하세요.
|
||||
|
||||
---
|
||||
|
||||
## 요금
|
||||
|
||||
종량제(pay-as-you-go)를 지원합니다. 아래 가격은 **1M tokens당** 기준입니다.
|
||||
|
|
|
|||
|
|
@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev er en System One-modell fra TypeSafe AI for raske, strukturerte beslutninger. I stedet for å generere tekst evaluerer den en `state` mot typede spørsmål og returnerer verdier og sannsynligheter som koden din kan bruke direkte. Den støtter ja/nei-spørsmål (`noul`), flervalgsspørsmål (`choice`) og kriteriebaserte spørsmål (`score`).
|
||||
|
||||
Bruk OpenCode Zen API Nøkkelen din med endepunktet `https://opencode.ai/zen/v1/systemone`. Dette eksempelet sjekker om en støtteforespørsel haster:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Du kan stille flere spørsmål i én forespørsel. Jev evaluerer dem parallelt og returnerer hvert svar under den tilhørende spørsmåls-ID-en:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Bruk `jev-1.13-free` i stedet for `jev-1.13` for å bruke den tidsbegrensede gratis-modellen. Se [TypeSafe AI-dokumentasjonen](https://docs.typesafe.ai/) for detaljer om spørsmålstyper og svarfelt.
|
||||
|
||||
---
|
||||
|
||||
## Priser
|
||||
|
||||
Vi støtter en pay-as-you-go-modell. Nedenfor er prisene **per 1M tokens**.
|
||||
|
|
|
|||
|
|
@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev to model System One od TypeSafe AI przeznaczony do szybkiego podejmowania ustrukturyzowanych decyzji. Zamiast generować tekst, ocenia `state` według pytań z określonymi typami i zwraca wartości oraz prawdopodobieństwa, które Twój kod może wykorzystać bezpośrednio. Obsługuje pytania tak/nie (`noul`), wielokrotnego wyboru (`choice`) i oparte na kryteriach oceny (`score`).
|
||||
|
||||
Użyj klucza API OpenCode Zen z endpointem `https://opencode.ai/zen/v1/systemone`. Ten przykład sprawdza, czy zgłoszenie do pomocy technicznej jest pilne:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
W jednym żądaniu możesz zadać wiele pytań. Jev ocenia je równolegle i zwraca każdą odpowiedź pod identyfikatorem odpowiadającego jej pytania:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Aby użyć bezpłatnego modelu dostępnego przez ograniczony czas, zastosuj `jev-1.13-free` zamiast `jev-1.13`. Szczegółowe informacje o typach pytań i polach odpowiedzi znajdziesz w [dokumentacji TypeSafe AI](https://docs.typesafe.ai/).
|
||||
|
||||
---
|
||||
|
||||
## Cennik
|
||||
|
||||
Obsługujemy model pay-as-you-go. Poniżej znajdują się ceny **za 1M tokenów**.
|
||||
|
|
|
|||
|
|
@ -139,6 +139,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev é um modelo System One da TypeSafe AI para decisões rápidas e estruturadas. Em vez de gerar texto, ele avalia um `state` com base em perguntas tipadas e retorna valores e probabilidades que seu código pode usar diretamente. Ele é compatível com perguntas de sim/não (`noul`), de múltipla escolha (`choice`) e baseadas em critérios de avaliação (`score`).
|
||||
|
||||
Use sua chave de API do OpenCode Zen com o endpoint `https://opencode.ai/zen/v1/systemone`. Este exemplo verifica se uma solicitação de suporte é urgente:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Você pode fazer várias perguntas em uma única solicitação. Jev as avalia em paralelo e retorna cada resposta sob o ID da pergunta correspondente:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Use `jev-1.13-free` em vez de `jev-1.13` para usar o modelo gratuito por tempo limitado. Consulte a [documentação da TypeSafe AI](https://docs.typesafe.ai/) para saber mais sobre os tipos de perguntas e os campos de resposta.
|
||||
|
||||
---
|
||||
|
||||
## Preços
|
||||
|
||||
Oferecemos um modelo pay-as-you-go. Abaixo estão os preços **por 1M tokens**.
|
||||
|
|
|
|||
|
|
@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev — это модель System One от TypeSafe AI для быстрых структурированных решений. Вместо генерации текста она оценивает `state` по типизированным вопросам и возвращает значения и вероятности, которые ваш код может использовать напрямую. Она поддерживает вопросы «да/нет» (`noul`), вопросы с несколькими вариантами ответа (`choice`) и вопросы с оценкой по критериям (`score`).
|
||||
|
||||
Используйте ключ API OpenCode Zen с конечной точкой `https://opencode.ai/zen/v1/systemone`. В этом примере проверяется, является ли запрос в службу поддержки срочным:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
В одном запросе можно задать несколько вопросов. Jev оценивает их параллельно и возвращает каждый ответ под соответствующим идентификатором вопроса:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Чтобы использовать бесплатную модель, доступную ограниченное время, укажите `jev-1.13-free` вместо `jev-1.13`. Подробную информацию о типах вопросов и полях ответа см. в [документации TypeSafe AI](https://docs.typesafe.ai/).
|
||||
|
||||
---
|
||||
|
||||
## Цены
|
||||
|
||||
Мы поддерживаем оплату по мере использования. Ниже указаны цены **за 1M токенов**.
|
||||
|
|
|
|||
|
|
@ -141,6 +141,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev เป็นโมเดล System One จาก TypeSafe AI สำหรับการตัดสินใจที่รวดเร็วและมีโครงสร้าง แทนที่จะสร้างข้อความ โมเดลจะประเมิน `state` เทียบกับคำถามที่กำหนดชนิดไว้ แล้วส่งคืนค่าและความน่าจะเป็นที่โค้ดของคุณนำไปใช้ได้โดยตรง รองรับคำถามแบบใช่/ไม่ใช่ (`noul`) แบบหลายตัวเลือก (`choice`) และแบบให้คะแนนตามเกณฑ์ (`score`)
|
||||
|
||||
ใช้ API key ของ OpenCode Zen กับ endpoint `https://opencode.ai/zen/v1/systemone` ตัวอย่างนี้ตรวจสอบว่า request ที่ส่งถึงฝ่าย support เป็นเรื่องเร่งด่วนหรือไม่:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
คุณสามารถถามหลายคำถามได้ใน request เดียว Jev จะประเมินคำถามเหล่านั้นพร้อมกัน และส่งคืนคำตอบแต่ละรายการภายใต้ ID ของคำถามที่ตรงกัน:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
ใช้ `jev-1.13-free` แทน `jev-1.13` เพื่อใช้โมเดลฟรีในช่วงเวลาจำกัด ดูรายละเอียดเกี่ยวกับชนิดคำถามและฟิลด์ใน response ได้ใน[เอกสาร TypeSafe AI](https://docs.typesafe.ai/)
|
||||
|
||||
---
|
||||
|
||||
## ราคา
|
||||
|
||||
เรารองรับรูปแบบจ่ายตามการใช้งาน ด้านล่างคือราคา **ต่อ 1M tokens**
|
||||
|
|
|
|||
|
|
@ -139,6 +139,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev, hızlı ve yapılandırılmış kararlar için TypeSafe AI tarafından geliştirilen bir System One modelidir. Metin üretmek yerine bir `state` değerini türü belirlenmiş sorulara göre değerlendirir ve kodunuzun doğrudan kullanabileceği değerler ile olasılıklar döndürür. Evet/hayır (`noul`), çoktan seçmeli (`choice`) ve ölçüt tabanlı puanlama (`score`) sorularını destekler.
|
||||
|
||||
OpenCode Zen API anahtarınızı `https://opencode.ai/zen/v1/systemone` uç noktasıyla kullanın. Bu örnek, bir destek isteğinin acil olup olmadığını denetler:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Tek bir istekte birden fazla soru sorabilirsiniz. Jev bunları paralel olarak değerlendirir ve her yanıtı eşleşen soru ID'si altında döndürür:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Sınırlı süreli ücretsiz modeli kullanmak için `jev-1.13` yerine `jev-1.13-free` kullanın. Soru türleri ve yanıt alanları hakkında ayrıntılar için [TypeSafe AI belgelerine](https://docs.typesafe.ai/) bakın.
|
||||
|
||||
---
|
||||
|
||||
## Fiyatlandırma
|
||||
|
||||
Kullandıkça öde modelini destekliyoruz. Aşağıda **1M token başına** fiyatlar yer alıyor.
|
||||
|
|
|
|||
|
|
@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev is a System One model from TypeSafe AI for fast, structured decisions. Instead of generating text, it evaluates a `state` against typed questions and returns values and probabilities that your code can use directly. It supports yes/no (`noul`), multiple-choice (`choice`), and rubric-based (`score`) questions.
|
||||
|
||||
Use your OpenCode Zen API key with the `https://opencode.ai/zen/v1/systemone` endpoint. This example checks whether a support request is urgent:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
You can ask multiple questions in one request. Jev evaluates them in parallel and returns each answer under the matching question ID:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
Use `jev-1.13-free` instead of `jev-1.13` to use the limited-time free model. See the [TypeSafe AI documentation](https://docs.typesafe.ai/) for details about question types and response fields.
|
||||
|
||||
---
|
||||
|
||||
## Pricing
|
||||
|
||||
We support a pay-as-you-go model. Below are the prices **per 1M tokens**.
|
||||
|
|
|
|||
|
|
@ -139,6 +139,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev 是 TypeSafe AI 推出的一款 System One 模型,适用于快速、结构化的决策。它不会生成文本,而是根据带类型的问题评估 `state`,并返回可供代码直接使用的值和概率。它支持是/否问题(`noul`)、多项选择问题(`choice`)以及基于评分标准的问题(`score`)。
|
||||
|
||||
将你的 OpenCode Zen API 密钥用于 `https://opencode.ai/zen/v1/systemone` 端点。以下示例会检查支持请求是否紧急:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
你可以在一个请求中提出多个问题。Jev 会并行评估这些问题,并将每个答案返回到对应的问题 ID 下:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
使用 `jev-1.13-free` 代替 `jev-1.13`,即可使用限时免费模型。有关问题类型和响应字段的详细信息,请参阅 [TypeSafe AI 文档](https://docs.typesafe.ai/)。
|
||||
|
||||
---
|
||||
|
||||
## 定价
|
||||
|
||||
我们支持按量付费模式。以下是**每 1M tokens** 的价格。
|
||||
|
|
|
|||
|
|
@ -144,6 +144,60 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
---
|
||||
|
||||
## Jev
|
||||
|
||||
Jev 是 TypeSafe AI 推出的一款 System One 模型,適合用於快速、結構化的決策。它不會產生文字,而是根據有型別的問題評估 `state`,並回傳可供程式碼直接使用的值與機率。它支援是/否問題(`noul`)、多選問題(`choice`),以及依評分標準判定的問題(`score`)。
|
||||
|
||||
將你的 OpenCode Zen API 金鑰用於 `https://opencode.ai/zen/v1/systemone` 端點。以下範例會檢查支援請求是否緊急:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My payments have failed for three days and I am losing sales. Please help now.",
|
||||
"questions": {
|
||||
"is_urgent": {
|
||||
"type": "noul",
|
||||
"instructions": "Does this request require urgent attention?"
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
你可以在單一請求中提出多個問題。Jev 會平行評估這些問題,並將每個答案回傳到對應的問題 ID 下:
|
||||
|
||||
```bash
|
||||
curl https://opencode.ai/zen/v1/systemone \
|
||||
-H "Authorization: Bearer $OPENCODE_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"model": "jev-1.13",
|
||||
"state": "My order arrived late and the item is damaged. I want a refund.",
|
||||
"questions": {
|
||||
"department": {
|
||||
"type": "choice",
|
||||
"instructions": "Which team should handle this request?",
|
||||
"criteria": {
|
||||
"returns": "Refunds, exchanges, or damaged items",
|
||||
"shipping": "Delivery delays or lost packages",
|
||||
"billing": "Charges, invoices, or payment problems"
|
||||
}
|
||||
},
|
||||
"frustration": {
|
||||
"type": "score",
|
||||
"instructions": "How frustrated is the customer?",
|
||||
"criteria": ["Calm", "Frustrated", "Very angry"]
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
|
||||
使用 `jev-1.13-free` 取代 `jev-1.13`,即可使用限時免費模型。如需問題類型與回應欄位的詳細資訊,請參閱 [TypeSafe AI 文件](https://docs.typesafe.ai/)。
|
||||
|
||||
---
|
||||
|
||||
## 定價
|
||||
|
||||
我們支援按量付費模式。以下是 **每 1M tokens** 的價格。
|
||||
|
|
|
|||
Loading…
Reference in a new issue