Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
edfec4d
fix(docs): land a sidebar label guessed as an address on its section
yannickmonney Sep 30, 2026
50b720c
fix(platform): name the key and owner of every API-key budget rule
yannickmonney Sep 30, 2026
b8efd22
fix(platform): explain a chat reply that ended without an answer
yannickmonney Sep 30, 2026
c00c4cf
fix(platform): describe a departed holder's key from this org's record
yannickmonney Oct 1, 2026
24838b8
fix(platform): book what a chat turn consumed when it fails mid-stream
yannickmonney Oct 1, 2026
d7ba5b7
fix(platform): refresh API-key descriptions when budget rules change
yannickmonney Oct 1, 2026
7986e90
Merge remote-tracking branch 'origin/main' into fix/admin-budgets-cha…
yannickmonney Oct 1, 2026
8db4eff
test(platform): prove a mid-stream chat failure's booking on Postgres
yannickmonney Oct 1, 2026
b98b3b4
fix(platform): book no chat round a provider refused on its stream
yannickmonney Oct 1, 2026
71540f9
fix(platform): read a key revoked here as revoked though made elsewhere
yannickmonney Oct 1, 2026
2826eba
Merge commit 'd6dd53ae0b9bd154f85d2f325ffadc3b56b46883' into fix/pr40…
yannickmonney Oct 1, 2026
865d530
fix(platform): keep zero-usage stream refusals uncharged
yannickmonney Oct 1, 2026
9d4846e
chore: merge current main into budget review
yannickmonney Oct 2, 2026
16c3acd
chore: integrate queued sandbox cleanup in budget review
yannickmonney Oct 2, 2026
ff66b8b
fix(docs): keep near-miss suggestions in their context
yannickmonney Oct 2, 2026
7898562
fix(platform): refuse empty chat responses safely
yannickmonney Oct 2, 2026
20dc590
fix(platform): distinguish unavailable API keys from revocation
yannickmonney Oct 2, 2026
baad2c1
docs(manual): align suite counts with current main
yannickmonney Oct 2, 2026
53c6592
chore: merge current main into reviewed fixes
yannickmonney Oct 2, 2026
96655da
docs(platform): clarify refused-round usage accounting
yannickmonney Oct 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ reference lives in [`services/docs/tests/AGENTS.md`](../services/docs/tests/AGEN
served, append-only (the docs build records new pages; never delete a line). Each must keep
answering in every locale, as a page or through `redirects.json`: a page that goes away without
a redirect fails `tests/published.test.ts`. The retired `de-CH`, `de-AT` and `fr-CH` trees and
guessed addresses (a title turned into a slug, a translated folder) are answered by the server's
near-miss resolver (`lib/near-miss.ts`), not by entries here.
guessed addresses (a title turned into a slug, a translated folder, a sidebar group's label such
as `/de/verwaltung`) are answered by the server's near-miss resolver (`lib/near-miss.ts`), not by
entries here.
- The site: `services/docs/` (Vite + React + TanStack Router, prerendered static HTML). Its
chrome follows the **platform app** design language — a `SubPanel` navigation rail, one sticky
`h-13` header strip carrying the breadcrumb trail and the page actions, the article column, and
Expand Down
4 changes: 2 additions & 2 deletions docs/de/develop/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -860,10 +860,10 @@ Die Sprache ist eine Anweisung an das Modell, keine validierte Ausgabegarantie.
| `reasoningTokens` | Anteil der Ausgabetokens fürs Denken; fehlend bedeutet nicht gemeldet, `0` bedeutet ausdrücklich null |
| `cachedInputTokens` | Anteil der Eingabetokens aus dem Cache des Anbieters |
| `costEstimateCents` | Katalogschätzung in US-Cent mit Nachkommastellen, auf ein Millionstel Cent gerundet; fehlt ohne Katalogpreis |
| `estimated: true` | Von der Plattform geschätzte Werte, meist bei verlorenen Anbieterzahlen nach einem Abbruch |
| `estimated: true` | Von der Plattform geschätzte Werte, meist wenn Anbieterzahlen durch einen Abbruch oder einen Fehler mitten im Stream verloren gingen |
| `stepLimitHit: true` | Die Tool-Schleife hat ihr vollständiges Rundenbudget verbraucht |

Die Verbrauchserfassung bucht dieselbe Katalogschätzung. Eingaben aus dem Cache werden zum normalen Eingabepreis angesetzt; bei solchen Aufrufen ist die Schätzung daher eine Obergrenze. Geschätzter Verbrauch berücksichtigt den vollständigen Prompt einschließlich der Assistenten-Tools. Schlägt ein Lauf fehl, bevor Zähler verfügbar sind, fehlt `usage`.
Die Verbrauchserfassung bucht dieselbe Katalogschätzung. Eingaben aus dem Cache werden zum normalen Eingabepreis angesetzt; bei solchen Aufrufen ist die Schätzung daher eine Obergrenze. Geschätzter Verbrauch berücksichtigt den vollständigen Prompt einschließlich der Assistenten-Tools. Auch ein fehlgeschlagener Lauf trägt `usage` für das, was er verbraucht hat: seine abgeschlossenen Modellrunden und, falls der Anbieter die Anfrage bereits angenommen hatte, die fehlgeschlagene Runde – geschätzt, wo der Anbieter keine Zähler gemeldet hat. Eine Runde, die der Anbieter abgelehnt hat, zählt nicht mit, ob er mit einem HTTP-Fehlerstatus geantwortet oder eine Ablehnung wie ein Rate-Limit gemeldet hat, bevor eine Antwort oder ein positiver Verbrauch gemeldet wurde. Wird schon die erste Runde abgelehnt, fehlt `usage`.

`parts` ist eine geordnete Liste mit dem Unterscheidungsfeld `type`: `text`, `reasoning`, `attachment`, `tool-call`, `tool-result` oder `approval`. OpenAPI beschreibt jede Variante als eigenes benanntes Schema (`TextPart`, `ReasoningPart`, `AttachmentPart`, `ToolCallPart`, `ToolResultPart`, `ApprovalPart`) hinter einem `type`-Diskriminator mit explizitem Mapping, ein generierter Client bekommt also eine Klasse je Art. Behandle künftig unbekannte Varianten als undurchsichtige Daten, statt die gesamte Nachricht abzulehnen.

Expand Down
2 changes: 2 additions & 0 deletions docs/de/platform/admin/governance/policies-and-limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Als Admin oder Inhaber steuerst du unter **Einstellungen > Richtlinien > Richtli

Eine monatliche Rollenregel könnte Redakteuren beispielsweise ein persönliches Ausgabenlimit von 50 USD geben, während eine Organisationsregel die gemeinsamen Ausgaben auf 500 USD begrenzt. Das sind Beispielbeträge, keine empfohlenen Standardwerte.

Eine Regel bleibt in der Tabelle, auch wenn ihr API-Schlüssel nicht mehr funktioniert. **Ziel** nennt weiterhin den Schlüssel und seine Inhaberin oder seinen Inhaber. Der Status lautet **Abgelaufen**, solange der abgelaufene Schlüssel noch gespeichert ist, **Deaktiviert**, **Widerrufen**, wenn diese Organisation den Widerruf protokolliert hat, oder **Ehemaliges Mitglied**, wenn die Person die Organisation verlassen hat. **Nicht verfügbar** bedeutet, dass der Schlüssel bekannt ist, aber ohne protokollierten Grund nicht mehr gespeichert ist; das kann nach der Bereinigung abgelaufener Schlüssel passieren. **Unbekannter Schlüssel** kennzeichnet einen Schlüssel, zu dem diese Organisation keine Angaben hat. Entferne eine solche Regel, oder bearbeite sie und wähle einen aktiven Schlüssel.

Budgets gelten für neue kostenpflichtige Arbeit, einschließlich Chat, Sprachausgabe, verwalteter Agentenläufe, der Bilder, die Agenten erstellen, und der Aufrufe der Modell-Endpunkte. Tale prüft jede Chat-Anfrage, bevor sie läuft — eine gesendete Nachricht, eine neu erzeugte oder bearbeitete Antwort, beide Seiten eines Modellvergleichs, eine Nachricht, die auf einen Anhang wartet, und ein Senden über die REST-API — und lehnt sie ab, sobald eine zutreffende Grenze erreicht ist. Die Ablehnung nennt die Grenze und wann sie zurückgesetzt wird. Antworten, die noch geschrieben werden, halten fest, was sie verbrauchen können, damit gleichzeitig gesendete Anfragen eine fast erreichte Grenze nicht gemeinsam überschreiten. Die Bildanfrage eines Agenten wird ebenso geprüft, bevor das Bildmodell aufgerufen wird: Solange ihre Bilder entstehen, hält sie geschätzte Kosten fest, und die Prüfung zählt auch mit, was der eigene Lauf des Agenten noch für sein Modell ausgeben kann. Jedes Bild zählt als eine Anfrage. Die Bildgenerierung braucht Kosten- oder Anfragelimits, weil ihre Nutzung nicht in Text-Tokens gemessen wird. Ein Tokenlimit zählt Eingabe- und Ausgabetokens, und zur Eingabe gehört auch der Teil eines Prompts, den ein Anbieter aus seinem Cache gelesen oder dort abgelegt hat. Dieser Teil wird anders berechnet als die übrige Eingabe, deshalb kann ein Agent, der einen langen Prompt wiederverwendet, ein Tokenlimit erreichen, während seine Kosten niedrig bleiben. Untersuche Warnungen in der [Nutzungsanalyse](/de/platform/admin/governance/usage-analytics).

## Verstehen, welche Grenzen gelten
Expand Down
1 change: 1 addition & 0 deletions docs/de/platform/chat/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ Sehr lange Gespräche können das Kontextfenster des Modells überschreiten. Tal
| Eine Datei wurde nicht verwendet | Prüfe Projektzuordnung, Indexierungsstatus und Abrufschritte. Nenne die Datei ausdrücklich. |
| Die Suche meldet eine nicht verfügbare Quelle | Bitte einen Admin, den genannten Dienst oder die Embedding-Konfiguration zu prüfen. Ein leeres Ergebnis beweist nicht, dass die Information fehlt. |
| Eine Antwort endet mit einem Fehler | Lies die Fehlermeldung, prüfe das gewählte Modell und versuche es nach Behebung erneut. Tale wechselt nicht still den Anbieter. |
| Eine Antwort bleibt leer | Der Hinweis an ihrer Stelle nennt den Grund: Das Modell hat nichts geliefert, es hat sein Limit für Ausgabe-Tokens vor dem Schreiben aufgebraucht, oder der Inhaltsfilter des Anbieters hat die Antwort zurückgehalten. Wähle **Erneut versuchen**, oder verringere vorher den Denkaufwand, kürze die Anfrage oder wähle ein anderes Modell. |

Ein angeleitetes Beispiel mit Quellenprüfung findest du unter [Bessere Fragen im Chat](/de/tutorials/member/chat-effectively).
4 changes: 2 additions & 2 deletions docs/en/develop/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -833,10 +833,10 @@ Language is an instruction to the model, not a validated output guarantee. A mod
| `reasoningTokens` | Share of output spent reasoning; absent means unreported, while `0` is a reported zero |
| `cachedInputTokens` | Share of input served from the provider's cache |
| `costEstimateCents` | Catalog estimate in fractional US cents, rounded to a millionth of a cent; absent without catalog pricing |
| `estimated: true` | Platform-estimated counts, typically when provider counts were lost on cancellation |
| `estimated: true` | Platform-estimated counts, typically when provider counts were lost to a cancellation or a failure mid-stream |
| `stepLimitHit: true` | The tool loop used its full round budget |

The usage ledger books the same catalog estimate. Cached input is priced at the normal input rate, so the estimate is an upper bound for a cached turn. Estimated usage includes the whole prompt, including assistant tools. A turn that fails before any counts are available has no `usage`.
The usage ledger books the same catalog estimate. Cached input is priced at the normal input rate, so the estimate is an upper bound for a cached turn. Estimated usage includes the whole prompt, including assistant tools. A failed turn still carries `usage` for what it consumed: its finished model rounds and, if the provider had already accepted the request, the round that failed, estimated where the provider reported no counts. A round the provider refused adds nothing, whether it answered an HTTP error status or reported a refusal such as a rate limit before any answer or positive reported usage, so a turn refused on its first round has no `usage`.

`parts` is an ordered list discriminated by `type`: `text`, `reasoning`, `attachment`, `tool-call`, `tool-result`, or `approval`. The OpenAPI schema types each variant as its own named schema (`TextPart`, `ReasoningPart`, `AttachmentPart`, `ToolCallPart`, `ToolResultPart`, `ApprovalPart`) behind a `type` discriminator with an explicit mapping, so a generated client gets a class per kind. Treat future unknown variants as opaque rather than failing the whole message.

Expand Down
2 changes: 2 additions & 0 deletions docs/en/platform/admin/governance/policies-and-limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Use **Settings > Governance > Policies & Limits** as an Admin or Owner to contro

For example, a monthly role rule can give Editors a USD 50 personal spending limit, while an organization rule caps everyone's combined spend at USD 500. These are example amounts, not recommended defaults.

A rule stays in the table after its API key stops working. **Target** still names the key and its owner, with a status: **Expired** while the expired key is still stored, **Disabled**, **Revoked** when this organization recorded its revocation, or **Former member** when the owner has left the organization. **Unavailable** means the key is known but no longer stored, without a recorded cause; expiry cleanup can produce this state. **Unknown key** marks a key this organization has no record of. Remove such a rule, or edit it and choose an active key.

Budgets apply to new billable work, including chat, voice output, managed agent runs, the images agents generate, and calls to the model endpoints. Tale checks every chat request before it runs — a sent message, a regenerated or edited reply, both sides of a model comparison, a message waiting for an attachment, and a send through the REST API — and refuses it once a cap that applies is reached, naming the cap and when it resets. Replies still being written hold what they may spend, so requests sent at the same moment cannot pass a nearly reached cap together. An agent's image request is checked the same way before the image model is called: while its images are being made it holds an estimated cost, and the check also counts what the agent's own run may still spend on its model. Each image counts as one request. Image generation needs cost or request limits because its usage is not measured as text tokens. A token limit counts input and output tokens, and input includes the part of a prompt that a provider read from or wrote to its cache. That part is priced differently from other input, so an agent that reuses a long prompt can reach a token limit while its cost stays low. Investigate warnings in [Usage analytics](/platform/admin/governance/usage-analytics).

## Understand which caps apply
Expand Down
1 change: 1 addition & 0 deletions docs/en/platform/chat/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ Very long conversations may exceed the model’s context window. Tale displays a
| A file was not used | Check the chat’s project, the file’s indexing status, and the retrieval steps. Name the file explicitly. |
| Search reports an unavailable source | Ask an admin to check the named service or embedding configuration; an empty result is not proof the information does not exist. |
| A reply stops with an error | Read its error, check the selected model, and retry after the cause is resolved. Tale does not silently switch providers. |
| A reply ends without an answer | The note in its place says why: the model returned nothing, used up its output token limit before writing, or the provider’s content filter withheld the reply. Select **Try again**, or first lower the reasoning effort, shorten the request, or choose another model. |

For a guided example with source checking, follow [Chat effectively](/tutorials/member/chat-effectively).
4 changes: 2 additions & 2 deletions docs/fr/develop/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -985,10 +985,10 @@ Le champ `usage` décrit les tokens et le coût estimé :
- `reasoningTokens` est la part d’`outputTokens` consacrée au raisonnement. Le champ est absent si le fournisseur ne l’a pas communiqué ; `0` signifie qu’un zéro a été communiqué.
- `cachedInputTokens` est la part d’`inputTokens` servie depuis le cache du fournisseur.
- `costEstimateCents` est l’estimation du catalogue, en centimes de dollar américain, arrondie au millionième de centime. C’est la même estimation que dans le registre d’usage de l’organisation. Le champ est absent si le modèle n’a pas de tarif publié. Les entrées en cache utilisent le tarif d’entrée normal ; l’estimation représente donc une borne haute pour un tour bénéficiant du cache.
- `estimated: true` indique que Tale a estimé les compteurs faute de données du fournisseur, notamment après une annulation. Le prompt complet, outils de l’assistant compris, est inclus.
- `estimated: true` indique que Tale a estimé les compteurs faute de données du fournisseur, notamment après une annulation ou un échec en cours de flux. Le prompt complet, outils de l’assistant compris, est inclus.
- `stepLimitHit: true` indique que la boucle d’outils a atteint son nombre maximal d’appels au modèle.

`usage` est absent si le tour a échoué avant que le fournisseur ne transmette de compteurs.
Un tour en échec porte aussi un `usage` pour ce qu’il a consommé : ses appels au modèle terminés et, si le fournisseur avait déjà accepté la requête, l’appel qui a échoué, estimé là où le fournisseur n’a transmis aucun compteur. Un appel refusé par le fournisseur ne compte pas, qu’il ait répondu par un statut d’erreur HTTP ou signalé un refus, comme une limite de requêtes, avant toute réponse ou consommation positive déclarée. Si le premier appel est refusé, `usage` est absent.

`parts` est une liste ordonnée dont les éléments sont distingués par `type` : `text`, `reasoning`, `attachment`, `tool-call`, `tool-result` ou `approval`. Le document OpenAPI décrit chaque forme comme un schéma nommé (`TextPart`, `ReasoningPart`, `AttachmentPart`, `ToolCallPart`, `ToolResultPart`, `ApprovalPart`) derrière un discriminant `type` à mapping explicite, un client généré obtient donc une classe par type. Traite un type inconnu comme un élément opaque : de nouveaux types peuvent être ajoutés.

Expand Down
2 changes: 2 additions & 0 deletions docs/fr/platform/admin/governance/policies-and-limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ En tant qu’admin ou propriétaire, utilise **Paramètres > Gouvernance > Polit

Par exemple, une règle mensuelle de rôle peut donner aux rédacteurs un budget personnel de 50 USD, tandis qu’une règle d’organisation plafonne les dépenses cumulées à 500 USD. Ce sont des exemples, pas des valeurs recommandées.

Une règle reste dans le tableau même quand sa clé API ne fonctionne plus. **Cible** indique toujours la clé et la personne qui la détient, avec un statut : **Expirée** tant que la clé expirée est encore conservée, **Désactivée**, **Révoquée** si cette organisation a enregistré sa révocation, ou **Ancien membre** lorsque cette personne a quitté l’organisation. **Indisponible** signifie que la clé est connue mais n’est plus conservée, sans motif enregistré ; le nettoyage des clés expirées peut produire cet état. **Clé inconnue** signale une clé sur laquelle cette organisation n’a aucune information. Supprime une telle règle, ou modifie-la pour choisir une clé active.

Les budgets concernent les nouveaux travaux facturables, dont le chat, la sortie vocale, les exécutions d’agents gérés, les images que créent les agents et les appels aux endpoints de modèles. Tale vérifie chaque requête de chat avant son exécution — un message envoyé, une réponse régénérée ou modifiée, les deux côtés d’une comparaison de modèles, un message en attente d’une pièce jointe et un envoi par l’API REST — et la refuse dès qu’un plafond applicable est atteint, en indiquant ce plafond et le moment de sa réinitialisation. Les réponses en cours de rédaction réservent ce qu’elles peuvent dépenser, afin que des requêtes envoyées au même moment ne franchissent pas ensemble un plafond presque atteint. La demande d’image d’un agent est vérifiée de la même façon avant l’appel au modèle d’images : pendant que ses images sont créées, elle réserve un coût estimé, et la vérification compte aussi ce que l’exécution de l’agent peut encore dépenser pour son modèle. Chaque image compte pour une requête. La génération d’images a besoin de limites de coût ou de requêtes, car son usage ne se mesure pas en tokens de texte. Une limite de tokens compte les tokens d’entrée et de sortie, et l’entrée comprend la partie d’un prompt qu’un fournisseur a lue dans son cache ou y a écrite. Cette partie est facturée autrement que le reste de l’entrée : un agent qui réutilise un long prompt peut donc atteindre une limite de tokens alors que son coût reste faible. Examine les alertes dans l’[analyse de l’usage](/fr/platform/admin/governance/usage-analytics).

## Comprendre les plafonds applicables
Expand Down
1 change: 1 addition & 0 deletions docs/fr/platform/chat/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ Une conversation très longue peut dépasser la fenêtre de contexte du modèle.
| Un fichier n’a pas été utilisé | Vérifie le projet du chat, l’indexation du fichier et les étapes de consultation. Nomme le fichier. |
| La recherche signale une source indisponible | Demande à un admin de vérifier le service indiqué ou la configuration d’embedding. Un résultat vide ne prouve pas que l’information n’existe pas. |
| Une réponse s’arrête sur une erreur | Lis l’erreur, vérifie le modèle choisi et réessaie après correction. Tale ne change pas de fournisseur en silence. |
| Une réponse reste vide | La mention affichée à sa place en donne la raison : le modèle n’a rien renvoyé, il a épuisé sa limite de tokens en sortie avant d’écrire, ou le filtre de contenu du fournisseur a retenu la réponse. Choisis **Réessayer**, ou réduis d’abord l’effort de raisonnement, raccourcis la demande ou choisis un autre modèle. |

Pour un exemple guidé avec vérification des sources, suis [Mieux dialoguer avec le chat](/fr/tutorials/member/chat-effectively).
Loading