One order from a model for a Subs captain (the subs-captain use)
Changed onRun the AI door's subs-captain use for the signed-in account: the body and the answer are the use's own, the meter is the account's daily token rating (then its own saved AI key, else 429 quota_exceeded), as every AI call's. An Idempotency-Key makes a retry safe: the same key and body answer the first answer again and bill nothing. An account credential (Bearer ow_a_, a signed-in session, or a phone's X-Session-Token), or an AI door token that names this use.
Request
- Base URLhttps://www.onlyworlds.com
- Auth
- HTTP bearer
- or API key in header X-Session-Token
- or HTTP bearer
Headers
Replays of the same key with the same body return the first successful response (with Idempotent-Replay: true) for 24h; the same key with a different body is a 409 idempotency_error. While the first request with a key is still running, the same key is a 409 idempotency_in_flight: retry after Retry-After.
The client's own name for itself (atlas, lantern, sdk): lower case letters, digits and hyphens, 1 to 32 characters, after a trim. It is stored on the element as changed_client (a delete's tombstone as deleted_client), beside the door; it changes no door and no permission. A value outside the rule is ignored (stored as null), never refused.
Request body
The order wire the answer is in: only subs-order/2.
The captain's view of the battle now, as the seat renders it, ending with the orders valid now.
Optional: the night so far, with its own heading; sent before the situation.
Optional: the captain's Character as text (the OnlyWorlds part of the captain); sent first, under CHARACTER.
Response
One order on the subs-order/2 wire (order and the same as one JSON line), attempts, model, stop_reason and usage, the meter whole, and use_remaining (null: no daily ceiling). The system prompt is the Subs seat's (its hash in the list).
The order, checked against subs-order/2 (order, and contact, pattern, depth, sector, why as it gives them); words come back in the wire's own spelling.
The same order as one JSON line, for the seat's wire.
2 when the first answer was refused and asked again: both calls were counted.
How many more calls of this one's size fit in what this account has left today.
The account's tokens left today after this call.
The account's daily token rating.
Who paid for this call: rating, the account's daily token rating on the platform's key; own_key, the account's own AI key, once today's rating was spent (the rating's fields above are then as they were).
Calls to this use this account has left today; null when the use has no daily ceiling (the token rating is then the only limit).
Changes
- info
added the optional property
error/limitto the response with the status - info
added the optional property
error/limitto the response with the status - info
added the optional property
error/limitto the response with the status
4 more changes in this revision
- info