@b3os/sdk 0.0.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +171 -42
- package/dist/cjs/core/bytes.d.ts +30 -0
- package/dist/cjs/core/bytes.js +115 -0
- package/dist/cjs/core/bytes.js.map +1 -0
- package/dist/cjs/core/client.d.ts +61 -3
- package/dist/cjs/core/client.js +211 -33
- package/dist/cjs/core/client.js.map +1 -1
- package/dist/cjs/core/errors.d.ts +16 -4
- package/dist/cjs/core/errors.js +9 -6
- package/dist/cjs/core/errors.js.map +1 -1
- package/dist/cjs/core/handle.d.ts +31 -0
- package/dist/cjs/core/handle.js +86 -0
- package/dist/cjs/core/handle.js.map +1 -0
- package/dist/cjs/core/index.d.ts +6 -4
- package/dist/cjs/core/index.js +8 -1
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/core/login.d.ts +24 -0
- package/dist/cjs/core/login.js +93 -0
- package/dist/cjs/core/login.js.map +1 -0
- package/dist/cjs/core/namespace.d.ts +1 -1
- package/dist/cjs/core/namespace.js +1 -1
- package/dist/cjs/core/op.d.ts +11 -1
- package/dist/cjs/core/timing.d.ts +1 -1
- package/dist/cjs/core/timing.js +8 -1
- package/dist/cjs/core/timing.js.map +1 -1
- package/dist/cjs/core/transport.js +1 -1
- package/dist/cjs/core/transport.js.map +1 -1
- package/dist/cjs/core/util.d.ts +15 -3
- package/dist/cjs/core/util.js +54 -2
- package/dist/cjs/core/util.js.map +1 -1
- package/dist/cjs/core/ws.d.ts +4 -0
- package/dist/cjs/core/ws.js +7 -4
- package/dist/cjs/core/ws.js.map +1 -1
- package/dist/cjs/generated/client.d.ts +2 -2
- package/dist/cjs/generated/client.js +2 -2
- package/dist/cjs/generated/errors.d.ts +1 -1
- package/dist/cjs/generated/errors.js +30 -0
- package/dist/cjs/generated/errors.js.map +1 -1
- package/dist/cjs/generated/jobs.js +1 -1
- package/dist/cjs/generated/ns/actions.d.ts +48 -6
- package/dist/cjs/generated/ns/actions.js +59 -6
- package/dist/cjs/generated/ns/actions.js.map +1 -1
- package/dist/cjs/generated/ns/infer.d.ts +185 -54
- package/dist/cjs/generated/ns/infer.js +28 -74
- package/dist/cjs/generated/ns/infer.js.map +1 -1
- package/dist/cjs/generated/ns/keys.d.ts +12 -0
- package/dist/cjs/generated/ns/keys.js +22 -0
- package/dist/cjs/generated/ns/keys.js.map +1 -1
- package/dist/cjs/generated/ns/render.d.ts +95 -6
- package/dist/cjs/generated/ns/render.js +124 -7
- package/dist/cjs/generated/ns/render.js.map +1 -1
- package/dist/cjs/generated/ns/requests.d.ts +3 -1
- package/dist/cjs/generated/ns/requests.js +3 -1
- package/dist/cjs/generated/ns/requests.js.map +1 -1
- package/dist/cjs/generated/ns/routines.d.ts +131 -9
- package/dist/cjs/generated/ns/routines.js +186 -9
- package/dist/cjs/generated/ns/routines.js.map +1 -1
- package/dist/cjs/generated/ns/sandboxes.d.ts +298 -31
- package/dist/cjs/generated/ns/sandboxes.js +368 -29
- package/dist/cjs/generated/ns/sandboxes.js.map +1 -1
- package/dist/cjs/generated/ns/vision.d.ts +133 -14
- package/dist/cjs/generated/ns/vision.js +158 -12
- package/dist/cjs/generated/ns/vision.js.map +1 -1
- package/dist/cjs/generated/ns/webhooks.d.ts +8 -5
- package/dist/cjs/generated/ns/webhooks.js +8 -5
- package/dist/cjs/generated/ns/webhooks.js.map +1 -1
- package/dist/cjs/generated/types.d.ts +1956 -301
- package/dist/cjs/helpers/agents.d.ts +95 -0
- package/dist/cjs/helpers/agents.js +205 -0
- package/dist/cjs/helpers/agents.js.map +1 -0
- package/dist/cjs/helpers/render.d.ts +15 -0
- package/dist/cjs/helpers/render.js +74 -0
- package/dist/cjs/helpers/render.js.map +1 -0
- package/dist/cjs/helpers/routines.d.ts +61 -0
- package/dist/cjs/helpers/routines.js +234 -0
- package/dist/cjs/helpers/routines.js.map +1 -0
- package/dist/cjs/helpers/sandboxes.d.ts +237 -0
- package/dist/cjs/helpers/sandboxes.js +608 -0
- package/dist/cjs/helpers/sandboxes.js.map +1 -0
- package/dist/cjs/index.d.ts +4 -1
- package/dist/cjs/index.js +8 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/routines.d.ts +1 -0
- package/dist/cjs/routines.js +21 -0
- package/dist/cjs/routines.js.map +1 -0
- package/dist/cjs/webhooks.js.map +1 -1
- package/dist/esm/core/bytes.d.ts +30 -0
- package/dist/esm/core/bytes.js +111 -0
- package/dist/esm/core/bytes.js.map +1 -0
- package/dist/esm/core/client.d.ts +61 -3
- package/dist/esm/core/client.js +208 -31
- package/dist/esm/core/client.js.map +1 -1
- package/dist/esm/core/errors.d.ts +16 -4
- package/dist/esm/core/errors.js +9 -6
- package/dist/esm/core/errors.js.map +1 -1
- package/dist/esm/core/handle.d.ts +31 -0
- package/dist/esm/core/handle.js +82 -0
- package/dist/esm/core/handle.js.map +1 -0
- package/dist/esm/core/index.d.ts +6 -4
- package/dist/esm/core/index.js +4 -2
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/core/login.d.ts +24 -0
- package/dist/esm/core/login.js +85 -0
- package/dist/esm/core/login.js.map +1 -0
- package/dist/esm/core/namespace.d.ts +1 -1
- package/dist/esm/core/namespace.js +1 -1
- package/dist/esm/core/op.d.ts +11 -1
- package/dist/esm/core/timing.d.ts +1 -1
- package/dist/esm/core/timing.js +8 -1
- package/dist/esm/core/timing.js.map +1 -1
- package/dist/esm/core/transport.js +1 -1
- package/dist/esm/core/transport.js.map +1 -1
- package/dist/esm/core/util.d.ts +15 -3
- package/dist/esm/core/util.js +48 -1
- package/dist/esm/core/util.js.map +1 -1
- package/dist/esm/core/ws.d.ts +4 -0
- package/dist/esm/core/ws.js +7 -4
- package/dist/esm/core/ws.js.map +1 -1
- package/dist/esm/generated/client.d.ts +2 -2
- package/dist/esm/generated/client.js +2 -2
- package/dist/esm/generated/errors.d.ts +1 -1
- package/dist/esm/generated/errors.js +30 -0
- package/dist/esm/generated/errors.js.map +1 -1
- package/dist/esm/generated/jobs.js +1 -1
- package/dist/esm/generated/ns/actions.d.ts +48 -6
- package/dist/esm/generated/ns/actions.js +59 -6
- package/dist/esm/generated/ns/actions.js.map +1 -1
- package/dist/esm/generated/ns/infer.d.ts +185 -54
- package/dist/esm/generated/ns/infer.js +28 -74
- package/dist/esm/generated/ns/infer.js.map +1 -1
- package/dist/esm/generated/ns/keys.d.ts +12 -0
- package/dist/esm/generated/ns/keys.js +22 -0
- package/dist/esm/generated/ns/keys.js.map +1 -1
- package/dist/esm/generated/ns/render.d.ts +95 -6
- package/dist/esm/generated/ns/render.js +124 -7
- package/dist/esm/generated/ns/render.js.map +1 -1
- package/dist/esm/generated/ns/requests.d.ts +3 -1
- package/dist/esm/generated/ns/requests.js +3 -1
- package/dist/esm/generated/ns/requests.js.map +1 -1
- package/dist/esm/generated/ns/routines.d.ts +131 -9
- package/dist/esm/generated/ns/routines.js +186 -9
- package/dist/esm/generated/ns/routines.js.map +1 -1
- package/dist/esm/generated/ns/sandboxes.d.ts +298 -31
- package/dist/esm/generated/ns/sandboxes.js +368 -29
- package/dist/esm/generated/ns/sandboxes.js.map +1 -1
- package/dist/esm/generated/ns/vision.d.ts +133 -14
- package/dist/esm/generated/ns/vision.js +158 -12
- package/dist/esm/generated/ns/vision.js.map +1 -1
- package/dist/esm/generated/ns/webhooks.d.ts +8 -5
- package/dist/esm/generated/ns/webhooks.js +8 -5
- package/dist/esm/generated/ns/webhooks.js.map +1 -1
- package/dist/esm/generated/types.d.ts +1956 -301
- package/dist/esm/helpers/agents.d.ts +95 -0
- package/dist/esm/helpers/agents.js +199 -0
- package/dist/esm/helpers/agents.js.map +1 -0
- package/dist/esm/helpers/render.d.ts +15 -0
- package/dist/esm/helpers/render.js +70 -0
- package/dist/esm/helpers/render.js.map +1 -0
- package/dist/esm/helpers/routines.d.ts +61 -0
- package/dist/esm/helpers/routines.js +226 -0
- package/dist/esm/helpers/routines.js.map +1 -0
- package/dist/esm/helpers/sandboxes.d.ts +237 -0
- package/dist/esm/helpers/sandboxes.js +600 -0
- package/dist/esm/helpers/sandboxes.js.map +1 -0
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js +6 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routines.d.ts +1 -0
- package/dist/esm/routines.js +5 -0
- package/dist/esm/routines.js.map +1 -0
- package/dist/esm/webhooks.js.map +1 -1
- package/package.json +18 -7
- package/src/core/bytes.ts +112 -0
- package/src/core/client.ts +253 -33
- package/src/core/errors.ts +27 -10
- package/src/core/handle.ts +97 -0
- package/src/core/index.ts +7 -2
- package/src/core/login.ts +98 -0
- package/src/core/namespace.ts +1 -1
- package/src/core/op.ts +11 -1
- package/src/core/timing.ts +7 -2
- package/src/core/transport.ts +1 -1
- package/src/core/util.ts +53 -3
- package/src/core/ws.ts +11 -4
- package/src/generated/client.ts +2 -2
- package/src/generated/errors.ts +60 -0
- package/src/generated/jobs.ts +1 -1
- package/src/generated/ns/actions.ts +69 -6
- package/src/generated/ns/infer.ts +229 -61
- package/src/generated/ns/keys.ts +23 -0
- package/src/generated/ns/render.ts +152 -7
- package/src/generated/ns/requests.ts +3 -1
- package/src/generated/ns/routines.ts +205 -9
- package/src/generated/ns/sandboxes.ts +434 -34
- package/src/generated/ns/vision.ts +168 -14
- package/src/generated/ns/webhooks.ts +8 -5
- package/src/generated/types.ts +2211 -422
- package/src/helpers/agents.ts +300 -0
- package/src/helpers/render.ts +91 -0
- package/src/helpers/routines.ts +278 -0
- package/src/helpers/sandboxes.ts +788 -0
- package/src/index.ts +29 -5
- package/src/routines.ts +5 -0
- package/src/webhooks.ts +5 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ByteStream } from "../../core/bytes.ts";
|
|
1
2
|
import type { RequestOptions, StreamOptions } from "../../core/client.ts";
|
|
2
3
|
import { Namespace } from "../../core/namespace.ts";
|
|
3
4
|
import type { Op } from "../../core/op.ts";
|
|
@@ -26,13 +27,40 @@ export declare class InferAPI extends Namespace {
|
|
|
26
27
|
* word, which render uses to place clicks on words and cut captions. Every `response_format` is produced:
|
|
27
28
|
* `mp3`, `opus` (Ogg), `aac` (ADTS), `flac`, `wav` and `pcm` (16-bit mono at `sample_rate`, 24 kHz for
|
|
28
29
|
* `kokoro-82m`). `kokoro-82m` speaks at `speed` 0.5 to 2 and takes no `instructions`; other values return
|
|
29
|
-
* `400 unsupported_parameter`.
|
|
30
|
-
* `
|
|
30
|
+
* `400 unsupported_parameter`. OpenAI's voice names work: `alloy`, `echo`, `fable`, `nova` and `onyx` are
|
|
31
|
+
* Kokoro's `af_alloy`, `am_echo`, `bm_fable`, `af_nova` and `am_onyx`, and `ash`, `ballad`, `cedar`, `coral`,
|
|
32
|
+
* `marin`, `sage`, `shimmer` and `verse` are a fixed pick of other Kokoro voices (`am_michael`, `bm_george`,
|
|
33
|
+
* `am_fenrir`, `af_heart`, `af_kore`, `af_sarah`, `af_bella` and `am_puck`), not a claim that they sound alike.
|
|
34
|
+
* The `x-b3os-voice` header names the voice that spoke. Any other name is `404 voice_not_found`. B3OS
|
|
35
|
+
* extension: `language` reads `input` in another language than the voice's own (one of the `language` values
|
|
36
|
+
* `GET /v1/infer/audio/voices` lists; others are `400 unsupported_parameter`). While the
|
|
37
|
+
* node's voice service is down the answer is `503 infer_backend_unavailable` with `Retry-After`.
|
|
38
|
+
* `Server-Timing` carries the voice service's own
|
|
31
39
|
* `voice_queue` and `voice_run` beside b3osd's `synthesize` and `encode`. Bills `infer.audio_chars`
|
|
32
40
|
* (characters of `input`).
|
|
33
41
|
*
|
|
42
|
+
* Streaming: without `stream_format` the clip comes in one piece. With OpenAI's `stream_format` the audio
|
|
43
|
+
* is sent as it is made, sentence by sentence: `audio` sends the bytes of `response_format` as they come (a
|
|
44
|
+
* `wav` stream's header has open sizes, `0xFFFFFFFF`), and `sse` sends `speech.audio.delta` events with
|
|
45
|
+
* base64 audio, then one `speech.audio.done` with the format, duration, `words` when `timestamps` is `word`,
|
|
46
|
+
* and `b3os` timing. The response head waits for the first audio, so `Server-Timing` carries `ttfa`, the time
|
|
47
|
+
* from the request to the first audio bytes, and an error before any audio is a plain HTTP error. A failure
|
|
48
|
+
* after audio ends an `sse` stream with an `error` event and cuts an `audio` stream short; the characters of
|
|
49
|
+
* each part of the input that produced audio are billed. `timestamps: "word"` with `stream_format: "audio"`
|
|
50
|
+
* is `400 unsupported_parameter` (an audio stream carries only audio).
|
|
51
|
+
*
|
|
52
|
+
* In flight: each organization may have 32 speech answers on a node at once, streamed or not, each counted
|
|
53
|
+
* until its last byte is read; the next is `429 concurrency_limited` with `Retry-After: 1`. An answer whose
|
|
54
|
+
* caller reads nothing of it for 2 minutes ends, and its body is cut short.
|
|
55
|
+
*
|
|
34
56
|
* `POST /v1/infer/audio/speech` · scope `infer:run` · served by the node
|
|
35
57
|
*/
|
|
58
|
+
createSpeech(body: T.SpeechRequest & {
|
|
59
|
+
stream_format: "sse";
|
|
60
|
+
}, options?: StreamOptions): EventStream<T.SpeechStreamEvent>;
|
|
61
|
+
createSpeech(body: T.SpeechRequest & {
|
|
62
|
+
stream_format: "audio";
|
|
63
|
+
}, options?: RequestOptions): ByteStream;
|
|
36
64
|
createSpeech(body: T.SpeechRequest & {
|
|
37
65
|
timestamps: "word";
|
|
38
66
|
}, options?: RequestOptions): APIPromise<T.SpeechWithTimestamps>;
|
|
@@ -40,8 +68,9 @@ export declare class InferAPI extends Namespace {
|
|
|
40
68
|
/**
|
|
41
69
|
* List voices
|
|
42
70
|
*
|
|
43
|
-
* Lists the voices each speech model offers,
|
|
44
|
-
*
|
|
71
|
+
* Lists the voices each speech model offers, featured voices first, with language, gender, where the word
|
|
72
|
+
* timings come from, the voice's tier and use case, whether it is its language's default, and an audio
|
|
73
|
+
* sample. A B3OS endpoint (not part of the OpenAI API), so it uses B3OS lists and errors: `503 infer_backend_unavailable` with `Retry-After` while
|
|
45
74
|
* the voice service is down. All voices arrive in one page (`next_cursor` is always `null`).
|
|
46
75
|
*
|
|
47
76
|
* `GET /v1/infer/audio/voices` · scope `infer:read` · served by the node
|
|
@@ -61,16 +90,41 @@ export declare class InferAPI extends Namespace {
|
|
|
61
90
|
* Parameters this node does not take return `400 unsupported_parameter` naming the parameter. Besides the
|
|
62
91
|
* OpenAI parameters below, it takes the sampling extensions `top_k`, `min_p`, `repetition_penalty` and
|
|
63
92
|
* `logit_bias`, and `chat_template_kwargs.enable_thinking` (the model answers without a reasoning phase
|
|
64
|
-
* unless it is `true`; the reasoning then arrives in `reasoning_content`). `
|
|
65
|
-
*
|
|
93
|
+
* unless it is `true`; the reasoning then arrives in `reasoning_content`). `reasoning_effort` turns the
|
|
94
|
+
* reasoning phase on with a ceiling the node enforces: `low` 256, `medium` 1,024, `high` 4,096 and `xhigh`
|
|
95
|
+
* 8,192 reasoning tokens, after which the reasoning closes and the answer starts in the same request; `none`
|
|
96
|
+
* and `minimal` turn it off. `metadata`, `store`,
|
|
97
|
+
* `service_tier`, `prompt_cache_key`, `prompt_cache_retention`, `safety_identifier` and `verbosity` are
|
|
98
|
+
* accepted and ignored. `null` means unset for every optional parameter. Image URLs are
|
|
66
99
|
* `https://` (fetched by the node through its egress guard, which refuses private, loopback and metadata
|
|
67
100
|
* addresses with `403 egress_denied`) or `data:image/{png,jpeg,webp,gif};base64,`. JSON Schemas (tool
|
|
68
101
|
* `parameters`, `response_format.json_schema.schema`) larger than 64 KiB or nested deeper than 32 levels are
|
|
69
102
|
* `400 unsupported_parameter`.
|
|
70
103
|
*
|
|
104
|
+
* The runtime caches prompt prefixes per organization: the node salts the cache with your organization on
|
|
105
|
+
* every chat completion, Messages and Responses request, so a request reuses cached prefixes only from your
|
|
106
|
+
* own organization's requests, and another organization's request never hits yours. The salt is the node's,
|
|
107
|
+
* not a parameter: `cache_salt` is `400 unsupported_parameter`. The runtime's image caches (processed and
|
|
108
|
+
* encoded images) are split the same way: the node gives every image an identity derived from your
|
|
109
|
+
* organization and the image's bytes, so a cached image serves only your own organization's requests. A
|
|
110
|
+
* content part's `uuid` is `400 invalid_request`.
|
|
111
|
+
*
|
|
112
|
+
* Conversations are checked against what the model's chat template takes (`400 invalid_request` with the
|
|
113
|
+
* pointer): every message but an assistant one needs `content`, and on `b3os/qwen3.5-9b` the conversation
|
|
114
|
+
* needs a user message that is more than tool results. Developer messages are system messages on this node's
|
|
115
|
+
* models (OpenAI's meaning of the role); on `b3os/qwen3.5-9b` the system and developer messages a
|
|
116
|
+
* conversation starts with are joined into one, separated by a blank line (its chat template takes one), and
|
|
117
|
+
* a system or developer message after another turn is `400 invalid_request` pointing at it.
|
|
118
|
+
*
|
|
71
119
|
* Bills input and output tokens. Requests are admitted against your organization's per-minute limits on the
|
|
72
|
-
* model: one request, and the estimated prompt plus `max_completion_tokens` (or `max_tokens`, else
|
|
73
|
-
* tokens), settled with the real counts when the request ends.
|
|
120
|
+
* model: one request, and the estimated prompt plus `max_completion_tokens` (or `max_tokens`, else the
|
|
121
|
+
* default output cap, else 512 tokens), settled with the real counts when the request ends. The default
|
|
122
|
+
* output cap is a node setting, shown per model as `b3os.default_max_tokens` in `GET /v1/infer/models`: where
|
|
123
|
+
* it is set, a request that sets neither stops there with `finish_reason: "length"` (set `max_tokens` to go
|
|
124
|
+
* higher); where it is `null`, there is no cap and such a request can run to the end of the context. Each
|
|
125
|
+
* `https://` image reserves the node's image size limit (10 MiB) from your organization's per-minute image
|
|
126
|
+
* bytes before it is fetched, and gives back what it did not use; the bytes fetched count against the
|
|
127
|
+
* organization's daily egress quota.
|
|
74
128
|
*
|
|
75
129
|
* `POST /v1/infer/chat/completions` · scope `infer:run` · served by the node
|
|
76
130
|
*/
|
|
@@ -115,34 +169,76 @@ export declare class InferAPI extends Namespace {
|
|
|
115
169
|
* Create a response (OpenAI Responses API)
|
|
116
170
|
*
|
|
117
171
|
* A stateless subset of the OpenAI Responses API on the node's own models, for SDKs and agent frameworks that
|
|
118
|
-
* speak Responses (the OpenAI Agents SDK among them) with only the base URL changed
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* `
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* `
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
172
|
+
* speak Responses (the OpenAI Agents SDK among them) with only the base URL changed. Nothing is stored: send
|
|
173
|
+
* the whole conversation as `input` items each turn, and every response reports `store: false`. Models are
|
|
174
|
+
* those of `GET /v1/infer/models`; there is no gateway route on Responses. `null` means unset for every
|
|
175
|
+
* optional parameter.
|
|
176
|
+
*
|
|
177
|
+
* **Supported**
|
|
178
|
+
*
|
|
179
|
+
* | Parameter | On this node |
|
|
180
|
+
* |---|---|
|
|
181
|
+
* | `model` | A chat model from `GET /v1/infer/models` |
|
|
182
|
+
* | `input` | A string, or items: `message` (`input_text` and `input_image` parts; `output_text` for assistant turns), `function_call`, `function_call_output` and `reasoning` |
|
|
183
|
+
* | `instructions` | Joined with the system and developer items `input` starts with into one system message |
|
|
184
|
+
* | `tools`, `tool_choice`, `parallel_tool_calls` | `function` tools (at most 128); `tool_choice` `none`, `auto`, `required` or a named function. A tool's `strict` is passed to the runtime when set, and the response echoes what was applied: the value sent, or `null` when unset (OpenAI's default is `true`; unset here, `auto` tool calls are not held to the schema) |
|
|
185
|
+
* | `text.format` | `text`, `json_schema` (at most 64 KiB serialized and 32 levels deep) and `json_object` |
|
|
186
|
+
* | `reasoning.effort` | `low` and above turn the model's reasoning phase on, at most 256, 1,024, 4,096 or 8,192 reasoning tokens (`low` to `xhigh`, as chat's `reasoning_effort`); its text arrives in `reasoning` items. `none` and `minimal` leave it off |
|
|
187
|
+
* | `max_output_tokens` | Caps the answer; admission reserves it. Unset, the answer stops at the model's default output cap where the node sets one (`b3os.default_max_tokens`), with `status: "incomplete"`; where that is `null`, it can run to the end of the context |
|
|
188
|
+
* | `temperature`, `top_p` | Passed to the runtime |
|
|
189
|
+
* | `stream` | The Responses event stream (`response.created` ... `response.completed`), as OpenAI sends it |
|
|
190
|
+
* | `input_image` | `https://` URLs (fetched by the node through its egress guard) or `data:image/{png,jpeg,webp,gif};base64,` URLs, with the image limits of chat completions |
|
|
191
|
+
*
|
|
192
|
+
* **Accepted and ignored**
|
|
136
193
|
*
|
|
194
|
+
* | Parameter | Why |
|
|
195
|
+
* |---|---|
|
|
196
|
+
* | `store` | Nothing is stored; the response says `store: false` |
|
|
197
|
+
* | `metadata` | Echoed in the response (at most 16 keys) |
|
|
198
|
+
* | `user`, `safety_identifier`, `prompt_cache_key`, `prompt_cache_retention`, `service_tier` | No effect on this node; the runtime caches prompt prefixes on its own, per organization |
|
|
199
|
+
* | `text.verbosity`, `reasoning.summary`, `reasoning.generate_summary` | Echoed; the reasoning text is returned whole |
|
|
200
|
+
* | `include: ["reasoning.encrypted_content"]` | Reasoning items carry their text in `content` |
|
|
201
|
+
* | `stream_options.include_obfuscation` | No obfuscation padding is sent |
|
|
202
|
+
* | `truncation: "disabled"` | The default; the node never drops input items |
|
|
203
|
+
*
|
|
204
|
+
* **Refused** (`400 unsupported_parameter`, pointing at the parameter)
|
|
205
|
+
*
|
|
206
|
+
* | Parameter | Why |
|
|
207
|
+
* |---|---|
|
|
208
|
+
* | `previous_response_id`, `conversation`, `background: true`, `item_reference` items | They need stored responses |
|
|
209
|
+
* | `prompt` | Stored prompts are not available |
|
|
210
|
+
* | `truncation: "auto"` | The node never drops input items; keep the input within the model's context |
|
|
211
|
+
* | Tools other than `function` (web search, file search, computer use, code interpreter, MCP, image generation, shell), `defer_loading: true`, `allowed_callers` other than `direct` | They run on OpenAI's side |
|
|
212
|
+
* | `input_file` parts, `file_id` images | The Files API is not available |
|
|
213
|
+
* | `top_logprobs`, `max_tool_calls`, other `include` values | Not available on this node |
|
|
214
|
+
* | Any other parameter | The request is closed |
|
|
215
|
+
*
|
|
216
|
+
* **Errors** (OpenAI shape, the B3OS code in `error.code`)
|
|
217
|
+
*
|
|
218
|
+
* | Status | When |
|
|
219
|
+
* |---|---|
|
|
220
|
+
* | `400 invalid_request` | A malformed value, or a conversation the chat template refuses: on `b3os/qwen3.5-9b` it needs a user message that is more than function call outputs, and a system or developer item after another turn is refused (pointing at `input`) |
|
|
221
|
+
* | `400 unsupported_parameter` | The Refused rows above |
|
|
222
|
+
* | `400 context_length_exceeded` | The prompt plus `max_output_tokens` does not fit the model's context |
|
|
223
|
+
* | `403 egress_denied` | An image URL on a private, loopback or metadata address |
|
|
224
|
+
* | `404 model_not_available` | The model is not served on this node |
|
|
225
|
+
* | `429` | Over your organization's requests or tokens per minute, image bytes per minute or requests in flight (`Retry-After` says when) |
|
|
226
|
+
* | `503 infer_backend_unavailable` | The runtime is restarting or its slots are taken (`Retry-After`) |
|
|
227
|
+
* | stream `error` event | A stream that fails after it started ends with an `error` event; one that fails before the first token is a plain HTTP error |
|
|
228
|
+
*
|
|
229
|
+
* The response head of a stream waits for the first generated token, so `Server-Timing` can carry `ttft`.
|
|
137
230
|
* Bills input and output tokens, with the admission and limits of chat completions (the estimated prompt
|
|
138
|
-
* plus `max_output_tokens`, else 512 tokens, settled with the real counts; an
|
|
139
|
-
* its last token).
|
|
231
|
+
* plus `max_output_tokens`, else the default output cap, else 512 tokens, settled with the real counts; an
|
|
232
|
+
* abandoned stream is billed to its last token).
|
|
140
233
|
*
|
|
141
234
|
* `POST /v1/infer/responses` · scope `infer:run` · served by the node
|
|
142
|
-
*
|
|
143
|
-
* Stretch: in the contract, but may answer `501 not_implemented` on this deployment.
|
|
144
235
|
*/
|
|
145
|
-
createResponse(body: T.ResponsesRequest
|
|
236
|
+
createResponse(body: T.ResponsesRequest & {
|
|
237
|
+
stream: true;
|
|
238
|
+
}, options?: StreamOptions): EventStream<T.ResponsesStreamEvent>;
|
|
239
|
+
createResponse(body: T.ResponsesRequest & {
|
|
240
|
+
stream?: false | null;
|
|
241
|
+
}, options?: RequestOptions): APIPromise<T.ResponsesResponse>;
|
|
146
242
|
/**
|
|
147
243
|
* Create a message (Anthropic Messages API)
|
|
148
244
|
*
|
|
@@ -150,31 +246,68 @@ export declare class InferAPI extends Namespace {
|
|
|
150
246
|
* it with only the base URL and the credential changed: set `ANTHROPIC_BASE_URL` (or `base_url`) to
|
|
151
247
|
* `https://beta-api.b3os.org/v1/infer`, the same base URL as the OpenAI SDKs (`http://127.0.0.1:7700/v1/infer`
|
|
152
248
|
* inside a sandbox; the SDKs add `/v1/messages`), and send the B3OS key as a bearer token
|
|
153
|
-
* (`ANTHROPIC_AUTH_TOKEN`, or `auth_token` in the SDKs).
|
|
154
|
-
*
|
|
155
|
-
* `thinking` (the reasoning arrives in `thinking` blocks; `budget_tokens` caps it), JSON Schema output
|
|
156
|
-
* through `output_config.format`, stop sequences, a trailing assistant turn that the model continues, and
|
|
157
|
-
* streaming events (`message_start` ... `message_stop`, exactly as Anthropic sends them). Models are those
|
|
158
|
-
* of `GET /v1/infer/models`; there is no gateway route here.
|
|
159
|
-
*
|
|
160
|
-
* Parameters this node does not take return `400 unsupported_parameter` (tools Anthropic defines or runs,
|
|
161
|
-
* such as `web_search` or `bash`, `container`, `mcp_servers`, document and file sources).
|
|
162
|
-
* `cache_control`, `citations`, `metadata`, `service_tier`, `output_config.effort` and `thinking.display`
|
|
163
|
-
* are accepted and ignored (the runtime caches prompt prefixes on its own). Errors use the Anthropic shape
|
|
164
|
-
* (`{"type": "error", "error": {...}}`, with the B3OS code under `b3os`), except those raised before the
|
|
165
|
-
* request reaches the infer service (authentication, scopes, body size), which use the OpenAI shape of the
|
|
166
|
-
* rest of `/v1/infer`; Anthropic SDKs map both by HTTP status. A stream that fails after it started ends
|
|
167
|
-
* with an `error` event; one that fails before the first token is a plain HTTP error. The response head of
|
|
168
|
-
* a stream waits for the first generated token, so `Server-Timing` can carry `ttft`.
|
|
249
|
+
* (`ANTHROPIC_AUTH_TOKEN`, or `auth_token` in the SDKs). Models are those of `GET /v1/infer/models`; there is
|
|
250
|
+
* no gateway route here. `null` means unset for every optional parameter.
|
|
169
251
|
*
|
|
170
|
-
*
|
|
171
|
-
* plus `max_tokens`, settled with the real counts; an abandoned stream is billed to its last token).
|
|
252
|
+
* **Supported**
|
|
172
253
|
*
|
|
173
|
-
*
|
|
254
|
+
* | Parameter | On this node |
|
|
255
|
+
* |---|---|
|
|
256
|
+
* | `model`, `max_tokens` | Both required; `max_tokens` caps the answer and admission reserves it |
|
|
257
|
+
* | `messages` | `text`, `image` (`base64`, or `url` sources fetched by the node through its egress guard), `tool_use`, `tool_result` and `thinking` blocks. A trailing assistant turn ending in text is continued (prefill) |
|
|
258
|
+
* | `system` | A string or text blocks, joined with blank lines |
|
|
259
|
+
* | `tools`, `tool_choice` | Custom tools (`name`, `description`, `input_schema`, `strict`; at most 128); `tool_choice` `auto`, `any`, `tool` or `none`, with `disable_parallel_tool_use` |
|
|
260
|
+
* | `thinking` | `enabled` (`budget_tokens` from 1,024 and below `max_tokens` caps the reasoning), `adaptive` (capped at `output_config.effort`'s budget, `high` by default) or `disabled`; the reasoning arrives in `thinking` blocks |
|
|
261
|
+
* | `output_config.format` | JSON Schema output (`json_schema`, at most 64 KiB serialized and 32 levels deep) |
|
|
262
|
+
* | `stop_sequences` | At most 4 |
|
|
263
|
+
* | `temperature`, `top_p`, `top_k` | Passed to the runtime (`temperature` and `top_p` from 0 to 1) |
|
|
264
|
+
* | `stream` | Streaming events (`message_start` ... `message_stop`), exactly as Anthropic sends them |
|
|
174
265
|
*
|
|
175
|
-
*
|
|
266
|
+
* **Accepted and ignored**
|
|
267
|
+
*
|
|
268
|
+
* | Parameter | Why |
|
|
269
|
+
* |---|---|
|
|
270
|
+
* | `cache_control` (on any block or tool) | The runtime caches prompt prefixes on its own, per organization |
|
|
271
|
+
* | `context_management` | The node clears nothing from the conversation; the model sees every turn you send |
|
|
272
|
+
* | `citations` (on text blocks), `metadata.user_id`, `service_tier` | No effect on this node |
|
|
273
|
+
* | `output_config.effort` | With adaptive `thinking`, the reasoning budget: `low` 256, `medium` 1,024, `high` 4,096, `xhigh` and `max` 8,192 tokens (chat's `reasoning_effort` table). No effect otherwise |
|
|
274
|
+
* | `thinking.display` | The reasoning is always returned |
|
|
275
|
+
*
|
|
276
|
+
* **Refused** (`400 unsupported_parameter`, pointing at the parameter)
|
|
277
|
+
*
|
|
278
|
+
* | Parameter | Why |
|
|
279
|
+
* |---|---|
|
|
280
|
+
* | Tools Anthropic defines or runs (`web_search`, `bash`, `code_execution`, `computer`, `text_editor` and the like) | This node runs custom tools only |
|
|
281
|
+
* | `mcp_servers`, `container` | Not available on this node |
|
|
282
|
+
* | `document` blocks and `file` sources (the Files API) | Send text, or the image as base64 or a URL |
|
|
283
|
+
* | Any other parameter | The request is closed, as Anthropic refuses extra inputs |
|
|
284
|
+
*
|
|
285
|
+
* **Errors** (Anthropic shape, `{"type": "error", "error": {"type", "message"}}`, with the B3OS code under `b3os`)
|
|
286
|
+
*
|
|
287
|
+
* | Status (`error.type`) | When |
|
|
288
|
+
* |---|---|
|
|
289
|
+
* | `400 invalid_request_error` | A malformed value (`invalid_request`), a Refused row (`unsupported_parameter`), a prompt that does not fit the context (`context_length_exceeded`), or a conversation the chat template refuses: on `b3os/qwen3.5-9b` it needs a user turn with more than `tool_result` blocks, and is not empty once empty text blocks are dropped (pointing at `messages`) |
|
|
290
|
+
* | `403 permission_error` | An image URL on a private, loopback or metadata address (`egress_denied`) |
|
|
291
|
+
* | `404 not_found_error` | The model is not served on this node (`model_not_available`) |
|
|
292
|
+
* | `429 rate_limit_error` | Over your organization's requests or tokens per minute, image bytes per minute or requests in flight (`Retry-After` says when) |
|
|
293
|
+
* | `503 overloaded_error` | The runtime is restarting or its slots are taken (`infer_backend_unavailable`, `Retry-After`) |
|
|
294
|
+
* | stream `error` event | A stream that fails after it started ends with an `error` event; one that fails before the first token is a plain HTTP error |
|
|
295
|
+
*
|
|
296
|
+
* Errors raised before the request reaches the infer service (authentication, scopes, body size, an
|
|
297
|
+
* unavailable node), on the node and at the edge, use the same Anthropic shape, so Anthropic SDKs raise the
|
|
298
|
+
* exception they would for Anthropic's own API. The response head of a stream waits for the first generated
|
|
299
|
+
* token, so `Server-Timing` can carry `ttft`. Bills input and output
|
|
300
|
+
* tokens, with the admission and limits of chat completions (the estimated prompt plus `max_tokens`, settled
|
|
301
|
+
* with the real counts; an abandoned stream is billed to its last token).
|
|
302
|
+
*
|
|
303
|
+
* `POST /v1/infer/v1/messages` · scope `infer:run` · served by the node
|
|
176
304
|
*/
|
|
177
|
-
createMessage(body: T.AnthropicMessagesRequest
|
|
305
|
+
createMessage(body: T.AnthropicMessagesRequest & {
|
|
306
|
+
stream: true;
|
|
307
|
+
}, options?: StreamOptions): EventStream<T.AnthropicStreamEvent>;
|
|
308
|
+
createMessage(body: T.AnthropicMessagesRequest & {
|
|
309
|
+
stream?: false | null;
|
|
310
|
+
}, options?: RequestOptions): APIPromise<T.AnthropicMessage>;
|
|
178
311
|
/**
|
|
179
312
|
* Count the tokens of a message request
|
|
180
313
|
*
|
|
@@ -183,8 +316,6 @@ export declare class InferAPI extends Namespace {
|
|
|
183
316
|
* template (images included). Free: it counts against your requests per minute, not your tokens.
|
|
184
317
|
*
|
|
185
318
|
* `POST /v1/infer/v1/messages/count_tokens` · scope `infer:run` · served by the node
|
|
186
|
-
*
|
|
187
|
-
* Stretch: in the contract, but may answer `501 not_implemented` on this deployment.
|
|
188
319
|
*/
|
|
189
320
|
countMessageTokens(body: T.AnthropicCountTokensRequest, options?: RequestOptions): APIPromise<T.AnthropicCountTokens>;
|
|
190
321
|
}
|
|
@@ -5,6 +5,7 @@ const createSpeechOp = {
|
|
|
5
5
|
method: "POST",
|
|
6
6
|
path: "/v1/infer/audio/speech",
|
|
7
7
|
body: "json",
|
|
8
|
+
stream: "sse",
|
|
8
9
|
timeoutMs: 65000,
|
|
9
10
|
errorFormat: "openai",
|
|
10
11
|
scope: "infer:run",
|
|
@@ -62,7 +63,6 @@ const createResponseOp = {
|
|
|
62
63
|
stream: "sse",
|
|
63
64
|
timeoutMs: 600000,
|
|
64
65
|
errorFormat: "openai",
|
|
65
|
-
stretch: true,
|
|
66
66
|
scope: "infer:run",
|
|
67
67
|
};
|
|
68
68
|
const createMessageOp = {
|
|
@@ -72,8 +72,7 @@ const createMessageOp = {
|
|
|
72
72
|
body: "json",
|
|
73
73
|
stream: "sse",
|
|
74
74
|
timeoutMs: 600000,
|
|
75
|
-
errorFormat: "
|
|
76
|
-
stretch: true,
|
|
75
|
+
errorFormat: "anthropic",
|
|
77
76
|
scope: "infer:run",
|
|
78
77
|
};
|
|
79
78
|
const countMessageTokensOp = {
|
|
@@ -82,8 +81,7 @@ const countMessageTokensOp = {
|
|
|
82
81
|
path: "/v1/infer/v1/messages/count_tokens",
|
|
83
82
|
body: "json",
|
|
84
83
|
timeoutMs: 30000,
|
|
85
|
-
errorFormat: "
|
|
86
|
-
stretch: true,
|
|
84
|
+
errorFormat: "anthropic",
|
|
87
85
|
scope: "infer:run",
|
|
88
86
|
};
|
|
89
87
|
/** Descriptors of every infer operation, keyed by method name (for tooling and custom clients). */
|
|
@@ -101,7 +99,16 @@ export const inferOps = {
|
|
|
101
99
|
/** Models on the node: OpenAI-compatible chat, embeddings and speech (`/v1/infer`). */
|
|
102
100
|
export class InferAPI extends Namespace {
|
|
103
101
|
createSpeech(body, options = {}) {
|
|
104
|
-
|
|
102
|
+
const b = body;
|
|
103
|
+
if (b.stream_format === "sse") {
|
|
104
|
+
return this._client._postStream(createSpeechOp, { body }, options, {
|
|
105
|
+
terminal: (e) => ["speech.audio.done", "error"].includes(e.type ?? ""),
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (b.stream_format === "audio") {
|
|
109
|
+
return this._client._postBytes(createSpeechOp, { body }, options, "audio/mpeg, audio/wav, audio/pcm, audio/ogg, audio/aac, audio/flac");
|
|
110
|
+
}
|
|
111
|
+
if (b.timestamps === "word") {
|
|
105
112
|
return this._client._call(createSpeechOp, { body }, options);
|
|
106
113
|
}
|
|
107
114
|
return this._client._call(createSpeechOp, { body }, options, "audio/mpeg, audio/wav, audio/pcm, audio/ogg, audio/aac, audio/flac", "bytes");
|
|
@@ -109,8 +116,9 @@ export class InferAPI extends Namespace {
|
|
|
109
116
|
/**
|
|
110
117
|
* List voices
|
|
111
118
|
*
|
|
112
|
-
* Lists the voices each speech model offers,
|
|
113
|
-
*
|
|
119
|
+
* Lists the voices each speech model offers, featured voices first, with language, gender, where the word
|
|
120
|
+
* timings come from, the voice's tier and use case, whether it is its language's default, and an audio
|
|
121
|
+
* sample. A B3OS endpoint (not part of the OpenAI API), so it uses B3OS lists and errors: `503 infer_backend_unavailable` with `Retry-After` while
|
|
114
122
|
* the voice service is down. All voices arrive in one page (`next_cursor` is always `null`).
|
|
115
123
|
*
|
|
116
124
|
* `GET /v1/infer/audio/voices` · scope `infer:read` · served by the node
|
|
@@ -163,72 +171,20 @@ export class InferAPI extends Namespace {
|
|
|
163
171
|
getModel(model, options) {
|
|
164
172
|
return this._client._call(getModelOp, { path: [model] }, options);
|
|
165
173
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
* `function_call`, `function_call_output` and `reasoning` items), `instructions`, function tools with
|
|
173
|
-
* `tool_choice` and `parallel_tool_calls`, structured output through `text.format` (`json_schema`,
|
|
174
|
-
* `json_object`), `reasoning.effort` (`low` and above turn the model's reasoning phase on; its text arrives
|
|
175
|
-
* in `reasoning` items), `max_output_tokens`, `temperature`, `top_p`, and the Responses event stream
|
|
176
|
-
* (`response.created` ... `response.completed`, as OpenAI sends them).
|
|
177
|
-
*
|
|
178
|
-
* Nothing is stored: send the whole conversation as `input` items each turn. `previous_response_id`,
|
|
179
|
-
* `conversation`, `prompt`, `background: true` and `truncation: "auto"` are `400 unsupported_parameter`;
|
|
180
|
-
* `store`, `metadata` (echoed), `user`, `safety_identifier`, `prompt_cache_key`, `service_tier`,
|
|
181
|
-
* `text.verbosity`, `reasoning.summary` and `include: ["reasoning.encrypted_content"]` are accepted and
|
|
182
|
-
* ignored, and every response reports `store: false`. Tools other than `function` (web search, file
|
|
183
|
-
* search, computer use, code interpreter, MCP, image generation, shell) run on OpenAI's side and are
|
|
184
|
-
* `400 unsupported_parameter`. `null` means unset for every optional parameter. Images and JSON Schemas
|
|
185
|
-
* have the limits of chat completions. A stream that fails after it started ends with an `error` event; one
|
|
186
|
-
* that fails before the first token is a plain HTTP error. The response head of a stream waits for the
|
|
187
|
-
* first generated token, so `Server-Timing` can carry `ttft`.
|
|
188
|
-
*
|
|
189
|
-
* Bills input and output tokens, with the admission and limits of chat completions (the estimated prompt
|
|
190
|
-
* plus `max_output_tokens`, else 512 tokens, settled with the real counts; an abandoned stream is billed to
|
|
191
|
-
* its last token).
|
|
192
|
-
*
|
|
193
|
-
* `POST /v1/infer/responses` · scope `infer:run` · served by the node
|
|
194
|
-
*
|
|
195
|
-
* Stretch: in the contract, but may answer `501 not_implemented` on this deployment.
|
|
196
|
-
*/
|
|
197
|
-
createResponse(body, options) {
|
|
174
|
+
createResponse(body, options = {}) {
|
|
175
|
+
if (body.stream) {
|
|
176
|
+
return this._client._postStream(createResponseOp, { body }, options, {
|
|
177
|
+
terminal: (e) => ["response.completed", "response.incomplete", "error"].includes(e.type ?? ""),
|
|
178
|
+
});
|
|
179
|
+
}
|
|
198
180
|
return this._client._call(createResponseOp, { body }, options);
|
|
199
181
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
* inside a sandbox; the SDKs add `/v1/messages`), and send the B3OS key as a bearer token
|
|
207
|
-
* (`ANTHROPIC_AUTH_TOKEN`, or `auth_token` in the SDKs). Text, images (`base64`, or `url` sources fetched by
|
|
208
|
-
* the node through its egress guard), custom tools with `tool_use` and `tool_result` blocks, `tool_choice`,
|
|
209
|
-
* `thinking` (the reasoning arrives in `thinking` blocks; `budget_tokens` caps it), JSON Schema output
|
|
210
|
-
* through `output_config.format`, stop sequences, a trailing assistant turn that the model continues, and
|
|
211
|
-
* streaming events (`message_start` ... `message_stop`, exactly as Anthropic sends them). Models are those
|
|
212
|
-
* of `GET /v1/infer/models`; there is no gateway route here.
|
|
213
|
-
*
|
|
214
|
-
* Parameters this node does not take return `400 unsupported_parameter` (tools Anthropic defines or runs,
|
|
215
|
-
* such as `web_search` or `bash`, `container`, `mcp_servers`, document and file sources).
|
|
216
|
-
* `cache_control`, `citations`, `metadata`, `service_tier`, `output_config.effort` and `thinking.display`
|
|
217
|
-
* are accepted and ignored (the runtime caches prompt prefixes on its own). Errors use the Anthropic shape
|
|
218
|
-
* (`{"type": "error", "error": {...}}`, with the B3OS code under `b3os`), except those raised before the
|
|
219
|
-
* request reaches the infer service (authentication, scopes, body size), which use the OpenAI shape of the
|
|
220
|
-
* rest of `/v1/infer`; Anthropic SDKs map both by HTTP status. A stream that fails after it started ends
|
|
221
|
-
* with an `error` event; one that fails before the first token is a plain HTTP error. The response head of
|
|
222
|
-
* a stream waits for the first generated token, so `Server-Timing` can carry `ttft`.
|
|
223
|
-
*
|
|
224
|
-
* Bills input and output tokens, with the admission and limits of chat completions (the estimated prompt
|
|
225
|
-
* plus `max_tokens`, settled with the real counts; an abandoned stream is billed to its last token).
|
|
226
|
-
*
|
|
227
|
-
* `POST /v1/infer/v1/messages` · scope `infer:run` · served by the node
|
|
228
|
-
*
|
|
229
|
-
* Stretch: in the contract, but may answer `501 not_implemented` on this deployment.
|
|
230
|
-
*/
|
|
231
|
-
createMessage(body, options) {
|
|
182
|
+
createMessage(body, options = {}) {
|
|
183
|
+
if (body.stream) {
|
|
184
|
+
return this._client._postStream(createMessageOp, { body }, options, {
|
|
185
|
+
terminal: (e) => ["message_stop", "error"].includes(e.type ?? ""),
|
|
186
|
+
});
|
|
187
|
+
}
|
|
232
188
|
return this._client._call(createMessageOp, { body }, options);
|
|
233
189
|
}
|
|
234
190
|
/**
|
|
@@ -239,8 +195,6 @@ export class InferAPI extends Namespace {
|
|
|
239
195
|
* template (images included). Free: it counts against your requests per minute, not your tokens.
|
|
240
196
|
*
|
|
241
197
|
* `POST /v1/infer/v1/messages/count_tokens` · scope `infer:run` · served by the node
|
|
242
|
-
*
|
|
243
|
-
* Stretch: in the contract, but may answer `501 not_implemented` on this deployment.
|
|
244
198
|
*/
|
|
245
199
|
countMessageTokens(body, options) {
|
|
246
200
|
return this._client._call(countMessageTokensOp, { body }, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infer.js","sourceRoot":"","sources":["../../../../src/generated/ns/infer.ts"],"names":[],"mappings":"AAAA,4GAA4G;
|
|
1
|
+
{"version":3,"file":"infer.js","sourceRoot":"","sources":["../../../../src/generated/ns/infer.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAI5G,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAMpD,MAAM,cAAc,GAAO;IACzB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,KAAK;IAChB,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,MAAM,YAAY,GAAO;IACvB,EAAE,EAAE,iBAAiB;IACrB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wBAAwB;IAC9B,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,YAAY;CACpB,CAAC;AACF,MAAM,sBAAsB,GAAO;IACjC,EAAE,EAAE,2BAA2B;IAC/B,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,MAAM;IACjB,WAAW,EAAE,QAAQ;IACrB,KAAK,EAAE,WAAW;CACnB,CAAC;AACF,MAAM,kBAAkB,GAAO;IAC7B,EAAE,EAAE,uBAAuB;IAC3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O,IAAI,CAAC,OAAO,CAAC,WAAW,CAAyB,gBAAgB,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE;gBAC3F,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAE,CAAuB,CAAC,IAAI,IAAI,EAAE,CAAC;aACvG,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAsB,gBAAgB,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAyED,aAAa,CACX,IAAgC,EAChC,UAAyB,EAAE;QAE3B,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAyB,eAAe,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE;gBAC1F,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAE,CAAuB,CAAC,IAAI,IAAI,EAAE,CAAC;aACzF,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAqB,eAAe,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;OAQG;IACH,kBAAkB,CAChB,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAyB,oBAAoB,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -7,6 +7,7 @@ import type * as T from "../types.ts";
|
|
|
7
7
|
export declare const keysOps: {
|
|
8
8
|
readonly listKeys: Op;
|
|
9
9
|
readonly createKey: Op;
|
|
10
|
+
readonly revokeCurrentKey: Op;
|
|
10
11
|
readonly getCurrentKey: Op;
|
|
11
12
|
readonly revokeKey: Op;
|
|
12
13
|
readonly getKey: Op;
|
|
@@ -33,6 +34,17 @@ export declare class KeysAPI extends Namespace {
|
|
|
33
34
|
* `POST /v1/keys` · scope `platform:write` · served by beta-api.b3os.org
|
|
34
35
|
*/
|
|
35
36
|
createKey(body: T.ApiKeyCreateRequest, options?: RequestOptions): APIPromise<T.ApiKeyWithSecret>;
|
|
37
|
+
/**
|
|
38
|
+
* Revoke the calling credential
|
|
39
|
+
*
|
|
40
|
+
* Revokes the API key or CLI token that sends this request. Any key or token may revoke itself, whatever its
|
|
41
|
+
* scopes, so a key without `platform:write` can still be retired; `b3os logout` calls this. It takes effect
|
|
42
|
+
* like `DELETE /v1/keys/{key_id}` and returns the revoked key. A dashboard session is not a key: it gets
|
|
43
|
+
* `409 conflict`, so sign out instead.
|
|
44
|
+
*
|
|
45
|
+
* `DELETE /v1/keys/current` · scope `authenticated` · served by beta-api.b3os.org
|
|
46
|
+
*/
|
|
47
|
+
revokeCurrentKey(options?: RequestOptions): APIPromise<T.ApiKey>;
|
|
36
48
|
/**
|
|
37
49
|
* Describe the calling credential
|
|
38
50
|
*
|
|
@@ -18,6 +18,14 @@ const createKeyOp = {
|
|
|
18
18
|
timeoutMs: 10000,
|
|
19
19
|
scope: "platform:write",
|
|
20
20
|
};
|
|
21
|
+
const revokeCurrentKeyOp = {
|
|
22
|
+
id: "platformRevokeCurrentKey",
|
|
23
|
+
method: "DELETE",
|
|
24
|
+
path: "/v1/keys/current",
|
|
25
|
+
edge: true,
|
|
26
|
+
timeoutMs: 10000,
|
|
27
|
+
scope: "authenticated",
|
|
28
|
+
};
|
|
21
29
|
const getCurrentKeyOp = {
|
|
22
30
|
id: "platformGetCurrentKey",
|
|
23
31
|
method: "GET",
|
|
@@ -58,6 +66,7 @@ const updateKeyOp = {
|
|
|
58
66
|
export const keysOps = {
|
|
59
67
|
listKeys: listKeysOp,
|
|
60
68
|
createKey: createKeyOp,
|
|
69
|
+
revokeCurrentKey: revokeCurrentKeyOp,
|
|
61
70
|
getCurrentKey: getCurrentKeyOp,
|
|
62
71
|
revokeKey: revokeKeyOp,
|
|
63
72
|
getKey: getKeyOp,
|
|
@@ -88,6 +97,19 @@ export class KeysAPI extends Namespace {
|
|
|
88
97
|
createKey(body, options) {
|
|
89
98
|
return this._client._call(createKeyOp, { body }, options);
|
|
90
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Revoke the calling credential
|
|
102
|
+
*
|
|
103
|
+
* Revokes the API key or CLI token that sends this request. Any key or token may revoke itself, whatever its
|
|
104
|
+
* scopes, so a key without `platform:write` can still be retired; `b3os logout` calls this. It takes effect
|
|
105
|
+
* like `DELETE /v1/keys/{key_id}` and returns the revoked key. A dashboard session is not a key: it gets
|
|
106
|
+
* `409 conflict`, so sign out instead.
|
|
107
|
+
*
|
|
108
|
+
* `DELETE /v1/keys/current` · scope `authenticated` · served by beta-api.b3os.org
|
|
109
|
+
*/
|
|
110
|
+
revokeCurrentKey(options) {
|
|
111
|
+
return this._client._call(revokeCurrentKeyOp, {}, options);
|
|
112
|
+
}
|
|
91
113
|
/**
|
|
92
114
|
* Describe the calling credential
|
|
93
115
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../../src/generated/ns/keys.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAG5G,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,MAAM,UAAU,GAAO;IACrB,EAAE,EAAE,kBAAkB;IACtB,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,eAAe;CACvB,CAAC;AACF,MAAM,WAAW,GAAO;IACtB,EAAE,EAAE,mBAAmB;IACvB,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IA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