GeezerVison is showing github.com — docs(web): document Jev usage · dmouse/opencode@11be5bc
File treeExpand file treeCollapse file tree Open diff view settings packages/web/src/content/docs
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/web/src/content/docs/ar/zen.mdx +54Lines changed: 54 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -143,6 +143,60 @@ https://opencode.ai/zen/v1/models | 143 | 143 |
| 144 | 144 | --- | 145 | 145 |
| | 146 | +## Jev | | 147 | + | | 148 | +Jev هو نموذج System One من TypeSafe AI لاتخاذ قرارات سريعة ومنظّمة. بدلا من إنشاء نص، يقيّم `state` استنادا إلى أسئلة ذات أنواع محددة ويعيد قيما واحتمالات يمكن لكودك استخدامها مباشرة. يدعم أسئلة نعم/لا (`noul`)، والاختيار من متعدد (`choice`)، والأسئلة القائمة على معايير تقييم (`score`). | | 149 | + | | 150 | +استخدم مفتاح API الخاص بـ OpenCode Zen مع نقطة النهاية `https://opencode.ai/zen/v1/systemone`. يتحقق هذا المثال مما إذا كان طلب الدعم عاجلا: | | 151 | + | | 152 | +```bash | | 153 | +curl https://opencode.ai/zen/v1/systemone \ | | 154 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 155 | + -H "Content-Type: application/json" \ | | 156 | + -d '{ | | 157 | + "model": "jev-1.13", | | 158 | + "state": "My payments have failed for three days and I am losing sales. Please help now.", | | 159 | + "questions": { | | 160 | + "is_urgent": { | | 161 | + "type": "noul", | | 162 | + "instructions": "Does this request require urgent attention?" | | 163 | + } | | 164 | + } | | 165 | + }' | | 166 | +``` | | 167 | + | | 168 | +يمكنك طرح عدة أسئلة في طلب واحد. يقيّمها Jev بالتوازي ويعيد كل إجابة تحت معرّف السؤال المطابق: | | 169 | + | | 170 | +```bash | | 171 | +curl https://opencode.ai/zen/v1/systemone \ | | 172 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 173 | + -H "Content-Type: application/json" \ | | 174 | + -d '{ | | 175 | + "model": "jev-1.13", | | 176 | + "state": "My order arrived late and the item is damaged. I want a refund.", | | 177 | + "questions": { | | 178 | + "department": { | | 179 | + "type": "choice", | | 180 | + "instructions": "Which team should handle this request?", | | 181 | + "criteria": { | | 182 | + "returns": "Refunds, exchanges, or damaged items", | | 183 | + "shipping": "Delivery delays or lost packages", | | 184 | + "billing": "Charges, invoices, or payment problems" | | 185 | + } | | 186 | + }, | | 187 | + "frustration": { | | 188 | + "type": "score", | | 189 | + "instructions": "How frustrated is the customer?", | | 190 | + "criteria": ["Calm", "Frustrated", "Very angry"] | | 191 | + } | | 192 | + } | | 193 | + }' | | 194 | +``` | | 195 | + | | 196 | +استخدم `jev-1.13-free` بدلا من `jev-1.13` لاستخدام النموذج المجاني المتاح لفترة محدودة. راجع [وثائق TypeSafe AI](https://docs.typesafe.ai/) لمعرفة تفاصيل أنواع الأسئلة وحقول الاستجابة. | | 197 | + | | 198 | +--- | | 199 | + | 146 | 200 | ## التسعير | 147 | 201 |
| 148 | 202 | ندعم نموذج الدفع حسب الاستخدام. فيما يلي الأسعار **لكل 1M tokens**. | |
Collapse file Copy file name to clipboardExpand all lines: packages/web/src/content/docs/bs/zen.mdx +54Lines changed: 54 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models | 150 | 150 |
| 151 | 151 | --- | 152 | 152 |
| | 153 | +## Jev | | 154 | + | | 155 | +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`). | | 156 | + | | 157 | +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: | | 158 | + | | 159 | +```bash | | 160 | +curl https://opencode.ai/zen/v1/systemone \ | | 161 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 162 | + -H "Content-Type: application/json" \ | | 163 | + -d '{ | | 164 | + "model": "jev-1.13", | | 165 | + "state": "My payments have failed for three days and I am losing sales. Please help now.", | | 166 | + "questions": { | | 167 | + "is_urgent": { | | 168 | + "type": "noul", | | 169 | + "instructions": "Does this request require urgent attention?" | | 170 | + } | | 171 | + } | | 172 | + }' | | 173 | +``` | | 174 | + | | 175 | +Možete postaviti više pitanja u jednom zahtjevu. Jev ih procjenjuje paralelno i vraća svaki odgovor pod odgovarajućim ID-om pitanja: | | 176 | + | | 177 | +```bash | | 178 | +curl https://opencode.ai/zen/v1/systemone \ | | 179 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 180 | + -H "Content-Type: application/json" \ | | 181 | + -d '{ | | 182 | + "model": "jev-1.13", | | 183 | + "state": "My order arrived late and the item is damaged. I want a refund.", | | 184 | + "questions": { | | 185 | + "department": { | | 186 | + "type": "choice", | | 187 | + "instructions": "Which team should handle this request?", | | 188 | + "criteria": { | | 189 | + "returns": "Refunds, exchanges, or damaged items", | | 190 | + "shipping": "Delivery delays or lost packages", | | 191 | + "billing": "Charges, invoices, or payment problems" | | 192 | + } | | 193 | + }, | | 194 | + "frustration": { | | 195 | + "type": "score", | | 196 | + "instructions": "How frustrated is the customer?", | | 197 | + "criteria": ["Calm", "Frustrated", "Very angry"] | | 198 | + } | | 199 | + } | | 200 | + }' | | 201 | +``` | | 202 | + | | 203 | +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. | | 204 | + | | 205 | +--- | | 206 | + | 153 | 207 | ## Cijene | 154 | 208 |
| 155 | 209 | Podržavamo pay-as-you-go model. Ispod su cijene **po 1M tokena**. | |
Collapse file Copy file name to clipboardExpand all lines: packages/web/src/content/docs/da/zen.mdx +54Lines changed: 54 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models | 150 | 150 |
| 151 | 151 | --- | 152 | 152 |
| | 153 | +## Jev | | 154 | + | | 155 | +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`). | | 156 | + | | 157 | +Brug din OpenCode Zen API-nøgle med endpointet `https://opencode.ai/zen/v1/systemone`. Dette eksempel kontrollerer, om en supportanmodning haster: | | 158 | + | | 159 | +```bash | | 160 | +curl https://opencode.ai/zen/v1/systemone \ | | 161 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 162 | + -H "Content-Type: application/json" \ | | 163 | + -d '{ | | 164 | + "model": "jev-1.13", | | 165 | + "state": "My payments have failed for three days and I am losing sales. Please help now.", | | 166 | + "questions": { | | 167 | + "is_urgent": { | | 168 | + "type": "noul", | | 169 | + "instructions": "Does this request require urgent attention?" | | 170 | + } | | 171 | + } | | 172 | + }' | | 173 | +``` | | 174 | + | | 175 | +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: | | 176 | + | | 177 | +```bash | | 178 | +curl https://opencode.ai/zen/v1/systemone \ | | 179 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 180 | + -H "Content-Type: application/json" \ | | 181 | + -d '{ | | 182 | + "model": "jev-1.13", | | 183 | + "state": "My order arrived late and the item is damaged. I want a refund.", | | 184 | + "questions": { | | 185 | + "department": { | | 186 | + "type": "choice", | | 187 | + "instructions": "Which team should handle this request?", | | 188 | + "criteria": { | | 189 | + "returns": "Refunds, exchanges, or damaged items", | | 190 | + "shipping": "Delivery delays or lost packages", | | 191 | + "billing": "Charges, invoices, or payment problems" | | 192 | + } | | 193 | + }, | | 194 | + "frustration": { | | 195 | + "type": "score", | | 196 | + "instructions": "How frustrated is the customer?", | | 197 | + "criteria": ["Calm", "Frustrated", "Very angry"] | | 198 | + } | | 199 | + } | | 200 | + }' | | 201 | +``` | | 202 | + | | 203 | +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. | | 204 | + | | 205 | +--- | | 206 | + | 153 | 207 | ## Priser | 154 | 208 |
| 155 | 209 | Vi understøtter en pay-as-you-go-model. Nedenfor er priserne **pr. 1M tokens**. | |
Collapse file Copy file name to clipboardExpand all lines: packages/web/src/content/docs/de/zen.mdx +54Lines changed: 54 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -139,6 +139,60 @@ https://opencode.ai/zen/v1/models | 139 | 139 |
| 140 | 140 | --- | 141 | 141 |
| | 142 | +## Jev | | 143 | + | | 144 | +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`). | | 145 | + | | 146 | +Verwende deinen OpenCode Zen API-Key mit dem Endpunkt `https://opencode.ai/zen/v1/systemone`. Dieses Beispiel prüft, ob eine Supportanfrage dringend ist: | | 147 | + | | 148 | +```bash | | 149 | +curl https://opencode.ai/zen/v1/systemone \ | | 150 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 151 | + -H "Content-Type: application/json" \ | | 152 | + -d '{ | | 153 | + "model": "jev-1.13", | | 154 | + "state": "My payments have failed for three days and I am losing sales. Please help now.", | | 155 | + "questions": { | | 156 | + "is_urgent": { | | 157 | + "type": "noul", | | 158 | + "instructions": "Does this request require urgent attention?" | | 159 | + } | | 160 | + } | | 161 | + }' | | 162 | +``` | | 163 | + | | 164 | +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: | | 165 | + | | 166 | +```bash | | 167 | +curl https://opencode.ai/zen/v1/systemone \ | | 168 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 169 | + -H "Content-Type: application/json" \ | | 170 | + -d '{ | | 171 | + "model": "jev-1.13", | | 172 | + "state": "My order arrived late and the item is damaged. I want a refund.", | | 173 | + "questions": { | | 174 | + "department": { | | 175 | + "type": "choice", | | 176 | + "instructions": "Which team should handle this request?", | | 177 | + "criteria": { | | 178 | + "returns": "Refunds, exchanges, or damaged items", | | 179 | + "shipping": "Delivery delays or lost packages", | | 180 | + "billing": "Charges, invoices, or payment problems" | | 181 | + } | | 182 | + }, | | 183 | + "frustration": { | | 184 | + "type": "score", | | 185 | + "instructions": "How frustrated is the customer?", | | 186 | + "criteria": ["Calm", "Frustrated", "Very angry"] | | 187 | + } | | 188 | + } | | 189 | + }' | | 190 | +``` | | 191 | + | | 192 | +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/). | | 193 | + | | 194 | +--- | | 195 | + | 142 | 196 | ## Preise | 143 | 197 |
| 144 | 198 | Wir unterstützen ein Pay-as-you-go-Modell. Unten findest du die Preise **pro 1M Tokens**. | |
Collapse file Copy file name to clipboardExpand all lines: packages/web/src/content/docs/es/zen.mdx +54Lines changed: 54 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -150,6 +150,60 @@ https://opencode.ai/zen/v1/models | 150 | 150 |
| 151 | 151 | --- | 152 | 152 |
| | 153 | +## Jev | | 154 | + | | 155 | +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`). | | 156 | + | | 157 | +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: | | 158 | + | | 159 | +```bash | | 160 | +curl https://opencode.ai/zen/v1/systemone \ | | 161 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 162 | + -H "Content-Type: application/json" \ | | 163 | + -d '{ | | 164 | + "model": "jev-1.13", | | 165 | + "state": "My payments have failed for three days and I am losing sales. Please help now.", | | 166 | + "questions": { | | 167 | + "is_urgent": { | | 168 | + "type": "noul", | | 169 | + "instructions": "Does this request require urgent attention?" | | 170 | + } | | 171 | + } | | 172 | + }' | | 173 | +``` | | 174 | + | | 175 | +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: | | 176 | + | | 177 | +```bash | | 178 | +curl https://opencode.ai/zen/v1/systemone \ | | 179 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 180 | + -H "Content-Type: application/json" \ | | 181 | + -d '{ | | 182 | + "model": "jev-1.13", | | 183 | + "state": "My order arrived late and the item is damaged. I want a refund.", | | 184 | + "questions": { | | 185 | + "department": { | | 186 | + "type": "choice", | | 187 | + "instructions": "Which team should handle this request?", | | 188 | + "criteria": { | | 189 | + "returns": "Refunds, exchanges, or damaged items", | | 190 | + "shipping": "Delivery delays or lost packages", | | 191 | + "billing": "Charges, invoices, or payment problems" | | 192 | + } | | 193 | + }, | | 194 | + "frustration": { | | 195 | + "type": "score", | | 196 | + "instructions": "How frustrated is the customer?", | | 197 | + "criteria": ["Calm", "Frustrated", "Very angry"] | | 198 | + } | | 199 | + } | | 200 | + }' | | 201 | +``` | | 202 | + | | 203 | +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. | | 204 | + | | 205 | +--- | | 206 | + | 153 | 207 | ## Precios | 154 | 208 |
| 155 | 209 | Admitimos un modelo de pago por uso. A continuación se muestran los precios **por 1M tokens**. | |
Collapse file Copy file name to clipboardExpand all lines: packages/web/src/content/docs/fr/zen.mdx +54Lines changed: 54 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -139,6 +139,60 @@ https://opencode.ai/zen/v1/models | 139 | 139 |
| 140 | 140 | --- | 141 | 141 |
| | 142 | +## Jev | | 143 | + | | 144 | +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`). | | 145 | + | | 146 | +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 : | | 147 | + | | 148 | +```bash | | 149 | +curl https://opencode.ai/zen/v1/systemone \ | | 150 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 151 | + -H "Content-Type: application/json" \ | | 152 | + -d '{ | | 153 | + "model": "jev-1.13", | | 154 | + "state": "My payments have failed for three days and I am losing sales. Please help now.", | | 155 | + "questions": { | | 156 | + "is_urgent": { | | 157 | + "type": "noul", | | 158 | + "instructions": "Does this request require urgent attention?" | | 159 | + } | | 160 | + } | | 161 | + }' | | 162 | +``` | | 163 | + | | 164 | +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 : | | 165 | + | | 166 | +```bash | | 167 | +curl https://opencode.ai/zen/v1/systemone \ | | 168 | + -H "Authorization: Bearer $OPENCODE_API_KEY" \ | | 169 | + -H "Content-Type: application/json" \ | | 170 | + -d '{ | | 171 | + "model": "jev-1.13", | | 172 | + "state": "My order arrived late and the item is damaged. I want a refund.", | | 173 | + "questions": { | | 174 | + "department": { | | 175 | + "type": "choice", | | 176 | + "instructions": "Which team should handle this request?", | | 177 | + "criteria": { | | 178 | + "returns": "Refunds, exchanges, or damaged items", | | 179 | + "shipping": "Delivery delays or lost packages", | | 180 | + "billing": "Charges, invoices, or payment problems" | | 181 | + } | | 182 | + }, | | 183 | + "frustration": { | | 184 | + "type": "score", | | 185 | + "instructions": "How frustrated is the customer?", | | 186 | + "criteria": ["Calm", "Frustrated", "Very angry"] | | 187 | + } | | 188 | + } | | 189 | + }' | | 190 | +``` | | 191 | + | | 192 | +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. | | 193 | + | | 194 | +--- | | 195 | + | 142 | 196 | ## Tarification | 143 | 197 |
| 144 | 198 | Nous prenons en charge un modèle de paiement à l'utilisation. Vous trouverez ci-dessous les prix **par 1M tokens**. | |
|