@astrale-domains/ai-gateway 0.2.0 → 0.2.2
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/CHANGELOG.md +93 -0
- package/README.md +16 -15
- package/dist/schema/catalog/claude-opus-5.d.ts +1 -0
- package/dist/schema/catalog/claude-opus-5.js +22 -0
- package/dist/schema/catalog/gemini-3-5-flash.d.ts +1 -0
- package/dist/schema/catalog/gemini-3-5-flash.js +22 -0
- package/dist/schema/catalog/gpt-5-6-luna.d.ts +1 -0
- package/dist/schema/catalog/gpt-5-6-luna.js +22 -0
- package/dist/schema/catalog/gpt-5-6-sol.d.ts +1 -0
- package/dist/schema/catalog/gpt-5-6-sol.js +22 -0
- package/dist/schema/catalog/gpt-5-6-terra.d.ts +1 -0
- package/dist/schema/catalog/gpt-5-6-terra.js +22 -0
- package/dist/schema/catalog/index.d.ts +6 -0
- package/dist/schema/catalog/index.js +6 -0
- package/dist/schema/catalog/kimi-k2-7-code.d.ts +1 -0
- package/dist/schema/catalog/kimi-k2-7-code.js +26 -0
- package/dist/schema/index.d.ts +3 -2
- package/dist/schema/index.js +2 -1
- package/dist/schema/model/{class.d.ts → ai-model-class.d.ts} +12 -56
- package/dist/schema/model/ai-model-class.js +29 -0
- package/dist/schema/model/ai-model-input.d.ts +62 -0
- package/dist/schema/model/ai-model-input.js +18 -0
- package/dist/schema/model/ai-model-properties.d.ts +23 -0
- package/dist/schema/model/ai-model-properties.js +16 -0
- package/dist/schema/model/ai-model-request-body.js +2 -0
- package/dist/schema/model/index.d.ts +3 -1
- package/dist/schema/model/index.js +3 -1
- package/dist/schema/model/invoke-ai-model-anthropic-format-method.js +8 -0
- package/dist/schema/model/invoke-ai-model-openai-format-method.js +8 -0
- package/dist/schema/model/invoke-ai-model-passthrough-method.js +13 -0
- package/dist/schema/model/invoke-ai-model-vercel-format-method.js +8 -0
- package/dist/schema/model/register-ai-model-method.js +8 -0
- package/dist/schema/{application/index.d.ts → schema.d.ts} +27 -61
- package/dist/schema/schema.js +20 -0
- package/package.json +20 -7
- package/dist/schema/application/index.js +0 -9
- package/dist/schema/model/class.js +0 -70
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.2.2](https://github.com/astrale-os/domains/compare/ai-gateway-v0.2.1...ai-gateway-v0.2.2) (2026-08-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* make Domain lifecycles authoritative ([#101](https://github.com/astrale-os/domains/issues/101)) ([4ed45f6](https://github.com/astrale-os/domains/commit/4ed45f6c3f5708db52455904c28a2c13c983e33f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **integrations:** align provider authorization lifecycles ([#89](https://github.com/astrale-os/domains/issues/89)) ([734b396](https://github.com/astrale-os/domains/commit/734b396f80e6befa642e03aba8b0e311a4b63ade))
|
|
14
|
+
|
|
15
|
+
## [0.2.1](https://github.com/astrale-os/domains/compare/ai-gateway-v0.2.0...ai-gateway-v0.2.1) (2026-08-26)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **domains:** complete AI Gateway and Integrations parity qualification ([#87](https://github.com/astrale-os/domains/issues/87)) ([5be7461](https://github.com/astrale-os/domains/commit/5be74610469c4a20b108d73c38d0d2b6a298eef6))
|
|
21
|
+
* **domains:** restore AI Gateway and Integrations parity ([#80](https://github.com/astrale-os/domains/issues/80)) ([51ca802](https://github.com/astrale-os/domains/commit/51ca8027109bdc3fd3a05e861e6ed58bea8fe755))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* align domains with current SDK cohort ([#85](https://github.com/astrale-os/domains/issues/85)) ([f2153e2](https://github.com/astrale-os/domains/commit/f2153e271e1389692ee9f98a14207c5e4340a743))
|
|
27
|
+
* **deps:** qualify GRC and domain dependencies ([#84](https://github.com/astrale-os/domains/issues/84)) ([e8a4c6b](https://github.com/astrale-os/domains/commit/e8a4c6b80e8e8f02a385e0001aa0f220acef5ce6))
|
|
28
|
+
|
|
29
|
+
## [0.2.0](https://github.com/astrale-os/domains/compare/ai-gateway-v0.1.0...ai-gateway-v0.2.0) (2026-08-25)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### ⚠ BREAKING CHANGES
|
|
33
|
+
|
|
34
|
+
* doors-only graph reads across workspace/agents/services/ai-gateway
|
|
35
|
+
|
|
36
|
+
* doors-only graph reads across workspace/agents/services/ai-gateway ([d1b3f0a](https://github.com/astrale-os/domains/commit/d1b3f0af1059ab9dc8f4e10c3eaf0bd129c79876))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* add admin domain and blaxel runtime support ([6ce0422](https://github.com/astrale-os/domains/commit/6ce04227943166720d53b57ba2899f877e0b750d))
|
|
42
|
+
* add bookshelf domain (Author/Book + Reviewable) ([3ef0bba](https://github.com/astrale-os/domains/commit/3ef0bbaed6b984a8c5206cc102ea929b9bc24260))
|
|
43
|
+
* add ClaudeAgent class and ai-gateway domain extraction ([9c24d8a](https://github.com/astrale-os/domains/commit/9c24d8a4106532c1f7df6143df7d128e4471c910))
|
|
44
|
+
* add folder view and renderer, enhance class renderer with description ([8089785](https://github.com/astrale-os/domains/commit/8089785519ad39fcdb38be52d6c110802cf93644))
|
|
45
|
+
* add optional image and runtime environment to BlaxelComputer; update model defaults to gpt-5.5 ([26a2810](https://github.com/astrale-os/domains/commit/26a281010a01ea3e93325fb4367949243513bc53))
|
|
46
|
+
* add runtime logs, schedule, and secrets management ([265be00](https://github.com/astrale-os/domains/commit/265be00eb198c95f65308e12a61fdde4a2703848))
|
|
47
|
+
* **ai-gateway:** declare the seed standalone-function schema ([c3dd113](https://github.com/astrale-os/domains/commit/c3dd1132716b91cd8eca1dc74d267f1e2e6ae260))
|
|
48
|
+
* **computer:** ai-gateway → workerd + cold-start tier 1 ([593c03a](https://github.com/astrale-os/domains/commit/593c03a71672b692160806a28ea0fe3282174377))
|
|
49
|
+
* contract domain + central port map + strict BASE_DOMAIN ([e6dcf0d](https://github.com/astrale-os/domains/commit/e6dcf0ddd51f9514ec8c01a88f6fc3035ed85c54))
|
|
50
|
+
* distribution group/user views + ai-gateway exfiltration ([bb8ffa5](https://github.com/astrale-os/domains/commit/bb8ffa53d55c042fff132265bcafbdda1d68fac9))
|
|
51
|
+
* **distribution:** thread UI.handshake='shell'|'none' through View.resolve ([c1351e2](https://github.com/astrale-os/domains/commit/c1351e2eb2c463b7cc8132cd02d33ae188bf0c83))
|
|
52
|
+
* **domains:** cross-domain topology base-domain resolver + integration/blaxel/manager-ui fixes ([a862d16](https://github.com/astrale-os/domains/commit/a862d16001dc065d6d82cc4da2472312da963289))
|
|
53
|
+
* enhance User.init method to support optional parameters and improve identity binding logic ([23c4d81](https://github.com/astrale-os/domains/commit/23c4d819acb770bae5c5db16d868a23e9a0a02ad))
|
|
54
|
+
* **events:** add Events V0 and async issue notifications ([9538769](https://github.com/astrale-os/domains/commit/9538769b0e3ff4063583b3798b1e2301098a5e0c))
|
|
55
|
+
* overhaul domain apps and runtime flows ([cb92e06](https://github.com/astrale-os/domains/commit/cb92e0601d329a601c4eb072d4c80b0eff6816e7))
|
|
56
|
+
* overhaul services and domain applications ([b8bc24d](https://github.com/astrale-os/domains/commit/b8bc24dbce4c4541ccf1f453b5f3cd335ff1aca4))
|
|
57
|
+
* prepare demo domains for blaxel agents ([79f2164](https://github.com/astrale-os/domains/commit/79f2164278895d4da262a97931ec4b95b8f25398))
|
|
58
|
+
* publish Schema-only Domain contracts ([ec0a16a](https://github.com/astrale-os/domains/commit/ec0a16a46a08a3a2118ca1490a4f7e71239d62eb))
|
|
59
|
+
* publish Schema-only Domain contracts ([70aab15](https://github.com/astrale-os/domains/commit/70aab152f4eea0c69fed1a35cd4611d8d2f99ff9))
|
|
60
|
+
* recruitment + distribution local-compute + parallel domain WIP ([a859075](https://github.com/astrale-os/domains/commit/a85907562f059b78cedc07ad9bebe6aef4ecc0b8))
|
|
61
|
+
* refine domain dx refactor ([ae6108a](https://github.com/astrale-os/domains/commit/ae6108a497190880864177e1f9f1934034f84fc7))
|
|
62
|
+
* rename workspace domain to shell ([29e1d57](https://github.com/astrale-os/domains/commit/29e1d57264179fcd75d670d0c8454d1d67077cce))
|
|
63
|
+
* **skills:** add domain skill packages ([#28](https://github.com/astrale-os/domains/issues/28)) ([6c0b949](https://github.com/astrale-os/domains/commit/6c0b949f1e5821d9f53745fb02eca3453ffb7f80))
|
|
64
|
+
* unify ClaudeAgent on single agent image (chat + code-server) ([165ed71](https://github.com/astrale-os/domains/commit/165ed712fb2c23ab1b1b6f9d3b839c36974783dc))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Bug Fixes
|
|
68
|
+
|
|
69
|
+
* **admin:** install local distributions ([e77fa0e](https://github.com/astrale-os/domains/commit/e77fa0e0414bd51d427be3335bcb4686c7eb2cdf))
|
|
70
|
+
* **ai-gateway:** adopt current schema authoring APIs [skip ci] ([dc2c4bf](https://github.com/astrale-os/domains/commit/dc2c4bf5ad4eb5ed878635895b54af665d7b0585))
|
|
71
|
+
* **ai-gateway:** clear the chat prompt textarea after sending ([3f06824](https://github.com/astrale-os/domains/commit/3f06824f9084ff610a4ea775e3ab9b26df45c924))
|
|
72
|
+
* **ai-gateway:** declare the legacy schema cohort ([e23173a](https://github.com/astrale-os/domains/commit/e23173af90951c31970e7bd3cb5dfd01f91f66ba))
|
|
73
|
+
* **ai-gateway:** keep schema on legacy domain cohort [skip ci] ([d0781de](https://github.com/astrale-os/domains/commit/d0781dea6429eca5b03e62c7c45f21e64d25dbd5))
|
|
74
|
+
* **ai-gateway:** restore format-specific invocation ([#30](https://github.com/astrale-os/domains/issues/30)) ([3d1e82f](https://github.com/astrale-os/domains/commit/3d1e82f5d24092541724804c05d4d958007893cb))
|
|
75
|
+
* **ai-gateway:** use published kernel api range ([4a24d8e](https://github.com/astrale-os/domains/commit/4a24d8e4b72c35bd14d4ace2c6f0c2e21b5956ca))
|
|
76
|
+
* **ai-gateway:** view worker-audience auth + verbatim upstream errors + azure param ([13730b8](https://github.com/astrale-os/domains/commit/13730b8b6db69442ccf98ae7b370a22767503d15))
|
|
77
|
+
* **ci:** keep standalone packaging permissive ([9151cf9](https://github.com/astrale-os/domains/commit/9151cf99311dd070068734c373a1b7ec7e1027a0))
|
|
78
|
+
* **ci:** make domain workspace standalone ([ff42931](https://github.com/astrale-os/domains/commit/ff429317dfd8dd4b0af2ffe8160867c9ba410099))
|
|
79
|
+
* **ci:** simplify Domain publication ([097befc](https://github.com/astrale-os/domains/commit/097befc1217352ce4e3ce91c01d797aba8fd78a2))
|
|
80
|
+
* **ci:** simplify Domain publication ([1b99dd9](https://github.com/astrale-os/domains/commit/1b99dd9781337e13e63c5b1838d96d4fd0dfa3bc))
|
|
81
|
+
* **domains:** code review fixes + merge blaxel-computer deploy view/function ([2c855bf](https://github.com/astrale-os/domains/commit/2c855bf9497e1f0d9ca25be772ba05abe64516dc))
|
|
82
|
+
* **domains:** pin legacy package cohorts ([12043e2](https://github.com/astrale-os/domains/commit/12043e2fab4e96099aa487ec91acd5e7b33dea12))
|
|
83
|
+
* **domains:** use the compatible legacy cohort ([f6d42fa](https://github.com/astrale-os/domains/commit/f6d42fa60a08305fe8e1e6e046b80f37a73b190b))
|
|
84
|
+
* **frontend:** complete retained Domain identity ([cd667d1](https://github.com/astrale-os/domains/commit/cd667d111da05b76c599ce60ba7d741994a40abb))
|
|
85
|
+
* **frontend:** complete retained Domain identity ([efb9878](https://github.com/astrale-os/domains/commit/efb9878947877205f3469836d226875a7c50d055))
|
|
86
|
+
* **frontend:** pin compatible shell cohort [skip ci] ([c64bc4b](https://github.com/astrale-os/domains/commit/c64bc4b46a0ee0ec118d0add7e15bd494c1ff1f7))
|
|
87
|
+
* **frontend:** restore project source discovery ([#72](https://github.com/astrale-os/domains/issues/72)) ([7795508](https://github.com/astrale-os/domains/commit/77955086688833289b474c64314a6adae598be9f))
|
|
88
|
+
* keep Domain command cleanup narrow ([90f0b6c](https://github.com/astrale-os/domains/commit/90f0b6c68cdc43068e63f62bfc17ff610a79bb58))
|
|
89
|
+
* keep generic sandbox and model fixes ([0e5d69c](https://github.com/astrale-os/domains/commit/0e5d69ce8b1bbe73fbf5f9478b57c178bf72797d))
|
|
90
|
+
* migrate dev domain to current beta cohort ([9423b8e](https://github.com/astrale-os/domains/commit/9423b8ec9ee1f831ccd3770cccea3115afb17113))
|
|
91
|
+
* removed double view ai-gateway dist ([a61a4d9](https://github.com/astrale-os/domains/commit/a61a4d96e66721f0ffee355bc1635577435c8546))
|
|
92
|
+
* **views:** adopt proof-bounded Shell cohort ([#74](https://github.com/astrale-os/domains/issues/74)) ([09fb9f3](https://github.com/astrale-os/domains/commit/09fb9f39e5350cf930ff083090b6a6f21369dc49))
|
|
93
|
+
* **views:** retain graph query provenance ([#75](https://github.com/astrale-os/domains/issues/75)) ([c880a42](https://github.com/astrale-os/domains/commit/c880a42f78f15e24ebfe54ae4eb76388d8872a80))
|
package/README.md
CHANGED
|
@@ -6,21 +6,22 @@ before inference crosses the Cloudflare AI Gateway boundary.
|
|
|
6
6
|
|
|
7
7
|
## Current Application model
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
The
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
- Declarative Core installs the six stable model nodes; `AIModel.register` remains the authorized
|
|
10
|
+
operator path for an additional model.
|
|
11
|
+
- The View reads the catalog through the projected `listVisibleAIModels` Query directly. There is no
|
|
12
|
+
list Function wrapper.
|
|
13
|
+
- `AIModel.invoke` performs provider-native passthrough with caller credentials removed and long
|
|
14
|
+
safety identifiers normalized to bounded hashes.
|
|
15
|
+
- OpenAI Chat Completions, Anthropic Messages, Vercel UI messages, and provider-native passthrough
|
|
16
|
+
each have one exact HTTP route and one receiver-bound Action.
|
|
17
|
+
- The provider-neutral `model-inference` Integration is explicitly unsafe to replay because an
|
|
18
|
+
inference may bill or create provider-side effects.
|
|
19
|
+
- Binary output is one semantic mode with buffered and streaming byte bodies. Status, media type,
|
|
20
|
+
safe headers, cancellation, and incremental SSE delivery survive beneath that single result kind.
|
|
21
|
+
|
|
22
|
+
Anthropic tool calls and streaming events are translated to valid Anthropic protocol. Unsigned
|
|
23
|
+
OpenAI reasoning text is deliberately not emitted as an Anthropic `thinking` block because such a
|
|
24
|
+
block requires provider-authenticated signature evidence.
|
|
24
25
|
|
|
25
26
|
## Development
|
|
26
27
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const claudeOpus5: import("@astrale-os/sdk/schema").CoreNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { AIModel } from '../model/index.js';
|
|
3
|
+
export const claudeOpus5 = core.node(AIModel, {
|
|
4
|
+
name: 'Claude Opus 5',
|
|
5
|
+
description: 'Claude Opus 5 hosted on Azure for advanced reasoning and agentic work.',
|
|
6
|
+
modelId: 'claude-opus-5',
|
|
7
|
+
provider: 'azure',
|
|
8
|
+
upstreamFormat: 'anthropic',
|
|
9
|
+
contextWindow: 1_000_000,
|
|
10
|
+
maxOutputTokens: 128_000,
|
|
11
|
+
modality: { input: ['text', 'image'], output: ['text'] },
|
|
12
|
+
capabilities: {
|
|
13
|
+
streaming: true,
|
|
14
|
+
toolUse: true,
|
|
15
|
+
reasoning: true,
|
|
16
|
+
vision: true,
|
|
17
|
+
fileInput: true,
|
|
18
|
+
structuredOutput: false,
|
|
19
|
+
caching: false,
|
|
20
|
+
},
|
|
21
|
+
pricing: {},
|
|
22
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const gemini35Flash: import("@astrale-os/sdk/schema").CoreNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { AIModel } from '../model/index.js';
|
|
3
|
+
export const gemini35Flash = core.node(AIModel, {
|
|
4
|
+
name: 'Gemini 3.5 Flash',
|
|
5
|
+
description: 'Google Gemini 3.5 Flash through Cloudflare AI Gateway.',
|
|
6
|
+
modelId: 'google-ai-studio/gemini-3.5-flash',
|
|
7
|
+
provider: 'google',
|
|
8
|
+
upstreamFormat: 'openai',
|
|
9
|
+
contextWindow: 1_048_576,
|
|
10
|
+
maxOutputTokens: 65_536,
|
|
11
|
+
modality: { input: ['text', 'image'], output: ['text'] },
|
|
12
|
+
capabilities: {
|
|
13
|
+
streaming: true,
|
|
14
|
+
toolUse: true,
|
|
15
|
+
reasoning: true,
|
|
16
|
+
vision: true,
|
|
17
|
+
fileInput: true,
|
|
18
|
+
structuredOutput: true,
|
|
19
|
+
caching: false,
|
|
20
|
+
},
|
|
21
|
+
pricing: {},
|
|
22
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const gpt56Luna: import("@astrale-os/sdk/schema").CoreNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { AIModel } from '../model/index.js';
|
|
3
|
+
export const gpt56Luna = core.node(AIModel, {
|
|
4
|
+
name: 'GPT-5.6 Luna',
|
|
5
|
+
description: 'Cost-efficient GPT-5.6 model for high-volume workloads, deployed on Azure.',
|
|
6
|
+
modelId: 'gpt-5.6-luna',
|
|
7
|
+
provider: 'azure',
|
|
8
|
+
upstreamFormat: 'openai',
|
|
9
|
+
contextWindow: 1_050_000,
|
|
10
|
+
maxOutputTokens: 128_000,
|
|
11
|
+
modality: { input: ['text', 'image'], output: ['text'] },
|
|
12
|
+
capabilities: {
|
|
13
|
+
streaming: true,
|
|
14
|
+
toolUse: true,
|
|
15
|
+
reasoning: true,
|
|
16
|
+
vision: true,
|
|
17
|
+
fileInput: true,
|
|
18
|
+
structuredOutput: true,
|
|
19
|
+
caching: false,
|
|
20
|
+
},
|
|
21
|
+
pricing: {},
|
|
22
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const gpt56Sol: import("@astrale-os/sdk/schema").CoreNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { AIModel } from '../model/index.js';
|
|
3
|
+
export const gpt56Sol = core.node(AIModel, {
|
|
4
|
+
name: 'GPT-5.6 Sol',
|
|
5
|
+
description: 'Frontier GPT-5.6 model for complex professional work, deployed on Azure.',
|
|
6
|
+
modelId: 'gpt-5.6-sol',
|
|
7
|
+
provider: 'azure',
|
|
8
|
+
upstreamFormat: 'openai',
|
|
9
|
+
contextWindow: 1_050_000,
|
|
10
|
+
maxOutputTokens: 128_000,
|
|
11
|
+
modality: { input: ['text', 'image'], output: ['text'] },
|
|
12
|
+
capabilities: {
|
|
13
|
+
streaming: true,
|
|
14
|
+
toolUse: true,
|
|
15
|
+
reasoning: true,
|
|
16
|
+
vision: true,
|
|
17
|
+
fileInput: true,
|
|
18
|
+
structuredOutput: true,
|
|
19
|
+
caching: false,
|
|
20
|
+
},
|
|
21
|
+
pricing: {},
|
|
22
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const gpt56Terra: import("@astrale-os/sdk/schema").CoreNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { AIModel } from '../model/index.js';
|
|
3
|
+
export const gpt56Terra = core.node(AIModel, {
|
|
4
|
+
name: 'GPT-5.6 Terra',
|
|
5
|
+
description: 'Balanced GPT-5.6 model for intelligence and cost, deployed on Azure.',
|
|
6
|
+
modelId: 'gpt-5.6-terra',
|
|
7
|
+
provider: 'azure',
|
|
8
|
+
upstreamFormat: 'openai',
|
|
9
|
+
contextWindow: 1_050_000,
|
|
10
|
+
maxOutputTokens: 128_000,
|
|
11
|
+
modality: { input: ['text', 'image'], output: ['text'] },
|
|
12
|
+
capabilities: {
|
|
13
|
+
streaming: true,
|
|
14
|
+
toolUse: true,
|
|
15
|
+
reasoning: true,
|
|
16
|
+
vision: true,
|
|
17
|
+
fileInput: true,
|
|
18
|
+
structuredOutput: true,
|
|
19
|
+
caching: false,
|
|
20
|
+
},
|
|
21
|
+
pricing: {},
|
|
22
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { claudeOpus5 } from './claude-opus-5.js';
|
|
2
|
+
export { gemini35Flash } from './gemini-3-5-flash.js';
|
|
3
|
+
export { gpt56Luna } from './gpt-5-6-luna.js';
|
|
4
|
+
export { gpt56Sol } from './gpt-5-6-sol.js';
|
|
5
|
+
export { gpt56Terra } from './gpt-5-6-terra.js';
|
|
6
|
+
export { kimiK27Code } from './kimi-k2-7-code.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { claudeOpus5 } from './claude-opus-5.js';
|
|
2
|
+
export { gemini35Flash } from './gemini-3-5-flash.js';
|
|
3
|
+
export { gpt56Luna } from './gpt-5-6-luna.js';
|
|
4
|
+
export { gpt56Sol } from './gpt-5-6-sol.js';
|
|
5
|
+
export { gpt56Terra } from './gpt-5-6-terra.js';
|
|
6
|
+
export { kimiK27Code } from './kimi-k2-7-code.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const kimiK27Code: import("@astrale-os/sdk/schema").CoreNode;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { core } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { AIModel } from '../model/index.js';
|
|
3
|
+
export const kimiK27Code = core.node(AIModel, {
|
|
4
|
+
name: 'Kimi K2.7 Code',
|
|
5
|
+
description: 'Moonshot Kimi K2.7 Code on Cloudflare Workers AI.',
|
|
6
|
+
modelId: '@cf/moonshotai/kimi-k2.7-code',
|
|
7
|
+
provider: 'workers-ai',
|
|
8
|
+
upstreamFormat: 'openai',
|
|
9
|
+
contextWindow: 262_144,
|
|
10
|
+
maxOutputTokens: 32_768,
|
|
11
|
+
modality: { input: ['text', 'image'], output: ['text'] },
|
|
12
|
+
capabilities: {
|
|
13
|
+
streaming: true,
|
|
14
|
+
toolUse: true,
|
|
15
|
+
reasoning: true,
|
|
16
|
+
vision: true,
|
|
17
|
+
fileInput: true,
|
|
18
|
+
structuredOutput: true,
|
|
19
|
+
caching: false,
|
|
20
|
+
},
|
|
21
|
+
pricing: {
|
|
22
|
+
inputPerMTok: '$0.95',
|
|
23
|
+
outputPerMTok: '$4.00',
|
|
24
|
+
cachedInputReadPerMTok: '$0.19',
|
|
25
|
+
},
|
|
26
|
+
});
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { schema } from './
|
|
2
|
-
export type { AIGatewayDomain, AIGatewaySchema } from './
|
|
1
|
+
export { schema } from './schema.js';
|
|
2
|
+
export type { AIGatewayDomain, AIGatewaySchema } from './schema.js';
|
|
3
|
+
export { claudeOpus5, gemini35Flash, gpt56Luna, gpt56Sol, gpt56Terra, kimiK27Code, } from './catalog/index.js';
|
|
3
4
|
export { AIModel } from './model/index.js';
|
package/dist/schema/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
53
53
|
readonly properties: {
|
|
54
54
|
readonly modelId: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self">;
|
|
55
55
|
readonly provider: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self">;
|
|
56
|
+
readonly upstreamFormat: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"anthropic" | "openai", "anthropic" | "openai", true, "upstreamFormat", "self">;
|
|
56
57
|
readonly contextWindow: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "contextWindow", "self">;
|
|
57
58
|
readonly maxOutputTokens: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "maxOutputTokens", "self">;
|
|
58
59
|
readonly modality: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
|
|
@@ -87,6 +88,7 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
87
88
|
description?: string | undefined;
|
|
88
89
|
modelId: string;
|
|
89
90
|
provider: "azure" | "google" | "workers-ai";
|
|
91
|
+
upstreamFormat: "anthropic" | "openai";
|
|
90
92
|
contextWindow: number;
|
|
91
93
|
maxOutputTokens: number;
|
|
92
94
|
modality: {
|
|
@@ -109,6 +111,7 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
109
111
|
name: string;
|
|
110
112
|
modelId: string;
|
|
111
113
|
provider: "azure" | "google" | "workers-ai";
|
|
114
|
+
upstreamFormat: "anthropic" | "openai";
|
|
112
115
|
contextWindow: number;
|
|
113
116
|
maxOutputTokens: number;
|
|
114
117
|
modality: {
|
|
@@ -129,36 +132,11 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
129
132
|
description: string;
|
|
130
133
|
};
|
|
131
134
|
}, "authorized", true, "default">>;
|
|
132
|
-
readonly list: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
133
|
-
readonly mode: 'value';
|
|
134
|
-
readonly value: {
|
|
135
|
-
name: string;
|
|
136
|
-
modelId: string;
|
|
137
|
-
provider: "azure" | "google" | "workers-ai";
|
|
138
|
-
contextWindow: number;
|
|
139
|
-
maxOutputTokens: number;
|
|
140
|
-
modality: {
|
|
141
|
-
input: string[];
|
|
142
|
-
output: string[];
|
|
143
|
-
};
|
|
144
|
-
capabilities: {
|
|
145
|
-
toolUse: boolean;
|
|
146
|
-
vision: boolean;
|
|
147
|
-
reasoning: boolean;
|
|
148
|
-
fileInput: boolean;
|
|
149
|
-
structuredOutput: boolean;
|
|
150
|
-
streaming: boolean;
|
|
151
|
-
caching: boolean;
|
|
152
|
-
};
|
|
153
|
-
pricing: Record<string, string>;
|
|
154
|
-
id: string;
|
|
155
|
-
description: string;
|
|
156
|
-
}[];
|
|
157
|
-
}, "authenticated", true, "default">>;
|
|
158
135
|
readonly invoke: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
159
136
|
path: string;
|
|
160
137
|
body: string;
|
|
161
138
|
headers?: Record<string, string> | undefined;
|
|
139
|
+
contentType?: string | undefined;
|
|
162
140
|
}, {
|
|
163
141
|
readonly mode: 'binary';
|
|
164
142
|
}, "authorized", false, "default">>;
|
|
@@ -200,15 +178,15 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
200
178
|
}, {
|
|
201
179
|
input: string[];
|
|
202
180
|
output: string[];
|
|
203
|
-
}, true, "modality", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<Record<string, string>, Record<string, string>, true, "pricing", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self">) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
|
|
181
|
+
}, true, "modality", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<Record<string, string>, Record<string, string>, true, "pricing", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"anthropic" | "openai", "anthropic" | "openai", true, "upstreamFormat", "self">) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
|
|
204
182
|
readonly name: "description";
|
|
205
183
|
readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
|
|
206
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
207
|
-
readonly name: "name";
|
|
208
|
-
readonly key: "kernel.astrale.ai:class.Named.property.name";
|
|
209
184
|
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
210
185
|
readonly name: "createdAt";
|
|
211
186
|
readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
|
|
187
|
+
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
188
|
+
readonly name: "name";
|
|
189
|
+
readonly key: "kernel.astrale.ai:class.Named.property.name";
|
|
212
190
|
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
213
191
|
readonly name: "updatedAt";
|
|
214
192
|
readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
|
|
@@ -217,6 +195,7 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
217
195
|
path: string;
|
|
218
196
|
body: string;
|
|
219
197
|
headers?: Record<string, string> | undefined;
|
|
198
|
+
contentType?: string | undefined;
|
|
220
199
|
}, {
|
|
221
200
|
readonly mode: 'binary';
|
|
222
201
|
}, "authorized", false, "default">>, "invoke", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
@@ -232,36 +211,12 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
232
211
|
}, {
|
|
233
212
|
readonly mode: 'binary';
|
|
234
213
|
}, "authorized", false, "default">>, "invokeVercelFormat", "self">;
|
|
235
|
-
readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<
|
|
236
|
-
readonly mode: 'value';
|
|
237
|
-
readonly value: {
|
|
238
|
-
name: string;
|
|
239
|
-
modelId: string;
|
|
240
|
-
provider: "azure" | "google" | "workers-ai";
|
|
241
|
-
contextWindow: number;
|
|
242
|
-
maxOutputTokens: number;
|
|
243
|
-
modality: {
|
|
244
|
-
input: string[];
|
|
245
|
-
output: string[];
|
|
246
|
-
};
|
|
247
|
-
capabilities: {
|
|
248
|
-
toolUse: boolean;
|
|
249
|
-
vision: boolean;
|
|
250
|
-
reasoning: boolean;
|
|
251
|
-
fileInput: boolean;
|
|
252
|
-
structuredOutput: boolean;
|
|
253
|
-
streaming: boolean;
|
|
254
|
-
caching: boolean;
|
|
255
|
-
};
|
|
256
|
-
pricing: Record<string, string>;
|
|
257
|
-
id: string;
|
|
258
|
-
description: string;
|
|
259
|
-
}[];
|
|
260
|
-
}, "authenticated", true, "default">>, "list", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
214
|
+
readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
261
215
|
name: string;
|
|
262
216
|
description?: string | undefined;
|
|
263
217
|
modelId: string;
|
|
264
218
|
provider: "azure" | "google" | "workers-ai";
|
|
219
|
+
upstreamFormat: "anthropic" | "openai";
|
|
265
220
|
contextWindow: number;
|
|
266
221
|
maxOutputTokens: number;
|
|
267
222
|
modality: {
|
|
@@ -284,6 +239,7 @@ export declare const AIModel: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
284
239
|
name: string;
|
|
285
240
|
modelId: string;
|
|
286
241
|
provider: "azure" | "google" | "workers-ai";
|
|
242
|
+
upstreamFormat: "anthropic" | "openai";
|
|
287
243
|
contextWindow: number;
|
|
288
244
|
maxOutputTokens: number;
|
|
289
245
|
modality: {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { K, nodeClass } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { aiModelCapabilities, aiModelModality, aiModelProvider, aiModelUpstreamFormat, } from './ai-model-properties.js';
|
|
4
|
+
import { invokeAIModelAnthropicFormatMethod } from './invoke-ai-model-anthropic-format-method.js';
|
|
5
|
+
import { invokeAIModelOpenAIFormatMethod } from './invoke-ai-model-openai-format-method.js';
|
|
6
|
+
import { invokeAIModelPassthroughMethod } from './invoke-ai-model-passthrough-method.js';
|
|
7
|
+
import { invokeAIModelVercelFormatMethod } from './invoke-ai-model-vercel-format-method.js';
|
|
8
|
+
import { registerAIModelMethod } from './register-ai-model-method.js';
|
|
9
|
+
export const AIModel = nodeClass({
|
|
10
|
+
description: 'One permissioned upstream model exposed through Cloudflare AI Gateway.',
|
|
11
|
+
extends: [K.classes.Named, K.classes.Descriptable, K.classes.Timestamped],
|
|
12
|
+
properties: {
|
|
13
|
+
modelId: z.string().min(1).max(512),
|
|
14
|
+
provider: aiModelProvider,
|
|
15
|
+
upstreamFormat: aiModelUpstreamFormat,
|
|
16
|
+
contextWindow: z.number().int().positive(),
|
|
17
|
+
maxOutputTokens: z.number().int().positive(),
|
|
18
|
+
modality: aiModelModality,
|
|
19
|
+
capabilities: aiModelCapabilities,
|
|
20
|
+
pricing: z.record(z.string(), z.string()),
|
|
21
|
+
},
|
|
22
|
+
methods: {
|
|
23
|
+
register: registerAIModelMethod,
|
|
24
|
+
invoke: invokeAIModelPassthroughMethod,
|
|
25
|
+
invokeOpenaiFormat: invokeAIModelOpenAIFormatMethod,
|
|
26
|
+
invokeAnthropicFormat: invokeAIModelAnthropicFormatMethod,
|
|
27
|
+
invokeVercelFormat: invokeAIModelVercelFormatMethod,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const aiModelInput: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5
|
+
modelId: z.ZodString;
|
|
6
|
+
provider: z.ZodEnum<{
|
|
7
|
+
azure: "azure";
|
|
8
|
+
google: "google";
|
|
9
|
+
"workers-ai": "workers-ai";
|
|
10
|
+
}>;
|
|
11
|
+
upstreamFormat: z.ZodEnum<{
|
|
12
|
+
anthropic: "anthropic";
|
|
13
|
+
openai: "openai";
|
|
14
|
+
}>;
|
|
15
|
+
contextWindow: z.ZodNumber;
|
|
16
|
+
maxOutputTokens: z.ZodNumber;
|
|
17
|
+
modality: z.ZodObject<{
|
|
18
|
+
input: z.ZodArray<z.ZodString>;
|
|
19
|
+
output: z.ZodArray<z.ZodString>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
capabilities: z.ZodObject<{
|
|
22
|
+
toolUse: z.ZodBoolean;
|
|
23
|
+
vision: z.ZodBoolean;
|
|
24
|
+
reasoning: z.ZodBoolean;
|
|
25
|
+
fileInput: z.ZodBoolean;
|
|
26
|
+
structuredOutput: z.ZodBoolean;
|
|
27
|
+
streaming: z.ZodBoolean;
|
|
28
|
+
caching: z.ZodBoolean;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
pricing: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export declare const aiModelOutput: z.ZodObject<{
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
modelId: z.ZodString;
|
|
35
|
+
provider: z.ZodEnum<{
|
|
36
|
+
azure: "azure";
|
|
37
|
+
google: "google";
|
|
38
|
+
"workers-ai": "workers-ai";
|
|
39
|
+
}>;
|
|
40
|
+
upstreamFormat: z.ZodEnum<{
|
|
41
|
+
anthropic: "anthropic";
|
|
42
|
+
openai: "openai";
|
|
43
|
+
}>;
|
|
44
|
+
contextWindow: z.ZodNumber;
|
|
45
|
+
maxOutputTokens: z.ZodNumber;
|
|
46
|
+
modality: z.ZodObject<{
|
|
47
|
+
input: z.ZodArray<z.ZodString>;
|
|
48
|
+
output: z.ZodArray<z.ZodString>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
capabilities: z.ZodObject<{
|
|
51
|
+
toolUse: z.ZodBoolean;
|
|
52
|
+
vision: z.ZodBoolean;
|
|
53
|
+
reasoning: z.ZodBoolean;
|
|
54
|
+
fileInput: z.ZodBoolean;
|
|
55
|
+
structuredOutput: z.ZodBoolean;
|
|
56
|
+
streaming: z.ZodBoolean;
|
|
57
|
+
caching: z.ZodBoolean;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
pricing: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
description: z.ZodString;
|
|
62
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { aiModelCapabilities, aiModelModality, aiModelProvider, aiModelUpstreamFormat, } from './ai-model-properties.js';
|
|
3
|
+
export const aiModelInput = z.strictObject({
|
|
4
|
+
name: z.string().min(1).max(160),
|
|
5
|
+
description: z.string().max(5_000).optional(),
|
|
6
|
+
modelId: z.string().min(1).max(512),
|
|
7
|
+
provider: aiModelProvider,
|
|
8
|
+
upstreamFormat: aiModelUpstreamFormat,
|
|
9
|
+
contextWindow: z.number().int().positive(),
|
|
10
|
+
maxOutputTokens: z.number().int().positive(),
|
|
11
|
+
modality: aiModelModality,
|
|
12
|
+
capabilities: aiModelCapabilities,
|
|
13
|
+
pricing: z.record(z.string(), z.string()),
|
|
14
|
+
});
|
|
15
|
+
export const aiModelOutput = aiModelInput.extend({
|
|
16
|
+
id: z.string(),
|
|
17
|
+
description: z.string(),
|
|
18
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const aiModelProvider: z.ZodEnum<{
|
|
3
|
+
azure: "azure";
|
|
4
|
+
google: "google";
|
|
5
|
+
"workers-ai": "workers-ai";
|
|
6
|
+
}>;
|
|
7
|
+
export declare const aiModelUpstreamFormat: z.ZodEnum<{
|
|
8
|
+
anthropic: "anthropic";
|
|
9
|
+
openai: "openai";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const aiModelModality: z.ZodObject<{
|
|
12
|
+
input: z.ZodArray<z.ZodString>;
|
|
13
|
+
output: z.ZodArray<z.ZodString>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export declare const aiModelCapabilities: z.ZodObject<{
|
|
16
|
+
toolUse: z.ZodBoolean;
|
|
17
|
+
vision: z.ZodBoolean;
|
|
18
|
+
reasoning: z.ZodBoolean;
|
|
19
|
+
fileInput: z.ZodBoolean;
|
|
20
|
+
structuredOutput: z.ZodBoolean;
|
|
21
|
+
streaming: z.ZodBoolean;
|
|
22
|
+
caching: z.ZodBoolean;
|
|
23
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const aiModelProvider = z.enum(['workers-ai', 'google', 'azure']);
|
|
3
|
+
export const aiModelUpstreamFormat = z.enum(['openai', 'anthropic']);
|
|
4
|
+
export const aiModelModality = z.strictObject({
|
|
5
|
+
input: z.array(z.string()),
|
|
6
|
+
output: z.array(z.string()),
|
|
7
|
+
});
|
|
8
|
+
export const aiModelCapabilities = z.strictObject({
|
|
9
|
+
toolUse: z.boolean(),
|
|
10
|
+
vision: z.boolean(),
|
|
11
|
+
reasoning: z.boolean(),
|
|
12
|
+
fileInput: z.boolean(),
|
|
13
|
+
structuredOutput: z.boolean(),
|
|
14
|
+
streaming: z.boolean(),
|
|
15
|
+
caching: z.boolean(),
|
|
16
|
+
});
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export { AIModel } from './class.js';
|
|
1
|
+
export { AIModel } from './ai-model-class.js';
|
|
2
|
+
export { aiModelInput, aiModelOutput } from './ai-model-input.js';
|
|
3
|
+
export { aiModelCapabilities, aiModelModality, aiModelProvider, aiModelUpstreamFormat, } from './ai-model-properties.js';
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export { AIModel } from './class.js';
|
|
1
|
+
export { AIModel } from './ai-model-class.js';
|
|
2
|
+
export { aiModelInput, aiModelOutput } from './ai-model-input.js';
|
|
3
|
+
export { aiModelCapabilities, aiModelModality, aiModelProvider, aiModelUpstreamFormat, } from './ai-model-properties.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { method, output } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { aiModelRequestBody } from './ai-model-request-body.js';
|
|
4
|
+
export const invokeAIModelAnthropicFormatMethod = method({
|
|
5
|
+
auth: 'authorized',
|
|
6
|
+
input: z.strictObject({ body: aiModelRequestBody }),
|
|
7
|
+
output: output.binary(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { method, output } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { aiModelRequestBody } from './ai-model-request-body.js';
|
|
4
|
+
export const invokeAIModelOpenAIFormatMethod = method({
|
|
5
|
+
auth: 'authorized',
|
|
6
|
+
input: z.strictObject({ body: aiModelRequestBody }),
|
|
7
|
+
output: output.binary(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { method, output } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { aiModelRequestBody } from './ai-model-request-body.js';
|
|
4
|
+
export const invokeAIModelPassthroughMethod = method({
|
|
5
|
+
auth: 'authorized',
|
|
6
|
+
input: z.strictObject({
|
|
7
|
+
path: z.string().min(1).max(1_024),
|
|
8
|
+
body: aiModelRequestBody,
|
|
9
|
+
headers: z.record(z.string(), z.string()).default({}),
|
|
10
|
+
contentType: z.string().min(1).max(512).optional(),
|
|
11
|
+
}),
|
|
12
|
+
output: output.binary(),
|
|
13
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { method, output } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { aiModelRequestBody } from './ai-model-request-body.js';
|
|
4
|
+
export const invokeAIModelVercelFormatMethod = method({
|
|
5
|
+
auth: 'authorized',
|
|
6
|
+
input: z.strictObject({ body: aiModelRequestBody }),
|
|
7
|
+
output: output.binary(),
|
|
8
|
+
});
|
|
@@ -60,6 +60,7 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
60
60
|
readonly properties: {
|
|
61
61
|
readonly modelId: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self">;
|
|
62
62
|
readonly provider: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self">;
|
|
63
|
+
readonly upstreamFormat: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"anthropic" | "openai", "anthropic" | "openai", true, "upstreamFormat", "self">;
|
|
63
64
|
readonly contextWindow: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "contextWindow", "self">;
|
|
64
65
|
readonly maxOutputTokens: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<number, number, true, "maxOutputTokens", "self">;
|
|
65
66
|
readonly modality: import("@astrale-os/sdk/schema").AuthoredPropertyProjection<{
|
|
@@ -94,6 +95,7 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
94
95
|
description?: string | undefined;
|
|
95
96
|
modelId: string;
|
|
96
97
|
provider: "azure" | "google" | "workers-ai";
|
|
98
|
+
upstreamFormat: "anthropic" | "openai";
|
|
97
99
|
contextWindow: number;
|
|
98
100
|
maxOutputTokens: number;
|
|
99
101
|
modality: {
|
|
@@ -116,6 +118,7 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
116
118
|
name: string;
|
|
117
119
|
modelId: string;
|
|
118
120
|
provider: "azure" | "google" | "workers-ai";
|
|
121
|
+
upstreamFormat: "anthropic" | "openai";
|
|
119
122
|
contextWindow: number;
|
|
120
123
|
maxOutputTokens: number;
|
|
121
124
|
modality: {
|
|
@@ -136,36 +139,11 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
136
139
|
description: string;
|
|
137
140
|
};
|
|
138
141
|
}, "authorized", true, "default">>;
|
|
139
|
-
readonly list: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
140
|
-
readonly mode: 'value';
|
|
141
|
-
readonly value: {
|
|
142
|
-
name: string;
|
|
143
|
-
modelId: string;
|
|
144
|
-
provider: "azure" | "google" | "workers-ai";
|
|
145
|
-
contextWindow: number;
|
|
146
|
-
maxOutputTokens: number;
|
|
147
|
-
modality: {
|
|
148
|
-
input: string[];
|
|
149
|
-
output: string[];
|
|
150
|
-
};
|
|
151
|
-
capabilities: {
|
|
152
|
-
toolUse: boolean;
|
|
153
|
-
vision: boolean;
|
|
154
|
-
reasoning: boolean;
|
|
155
|
-
fileInput: boolean;
|
|
156
|
-
structuredOutput: boolean;
|
|
157
|
-
streaming: boolean;
|
|
158
|
-
caching: boolean;
|
|
159
|
-
};
|
|
160
|
-
pricing: Record<string, string>;
|
|
161
|
-
id: string;
|
|
162
|
-
description: string;
|
|
163
|
-
}[];
|
|
164
|
-
}, "authenticated", true, "default">>;
|
|
165
142
|
readonly invoke: import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
166
143
|
path: string;
|
|
167
144
|
body: string;
|
|
168
145
|
headers?: Record<string, string> | undefined;
|
|
146
|
+
contentType?: string | undefined;
|
|
169
147
|
}, {
|
|
170
148
|
readonly mode: 'binary';
|
|
171
149
|
}, "authorized", false, "default">>;
|
|
@@ -207,23 +185,28 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
207
185
|
}, {
|
|
208
186
|
input: string[];
|
|
209
187
|
output: string[];
|
|
210
|
-
}, true, "modality", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<Record<string, string>, Record<string, string>, true, "pricing", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self">) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
|
|
188
|
+
}, true, "modality", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<string, string, true, "modelId", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<Record<string, string>, Record<string, string>, true, "pricing", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"azure" | "google" | "workers-ai", "azure" | "google" | "workers-ai", true, "provider", "self"> | import("@astrale-os/sdk/schema").AuthoredPropertyProjection<"anthropic" | "openai", "anthropic" | "openai", true, "upstreamFormat", "self">) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, false> & {
|
|
211
189
|
readonly name: "description";
|
|
212
190
|
readonly key: "kernel.astrale.ai:class.Descriptable.property.description";
|
|
213
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
214
|
-
readonly name: "createdAt";
|
|
215
|
-
readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
|
|
216
191
|
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
217
192
|
readonly name: "name";
|
|
218
193
|
readonly key: "kernel.astrale.ai:class.Named.property.name";
|
|
194
|
+
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
195
|
+
readonly name: "createdAt";
|
|
196
|
+
readonly key: "kernel.astrale.ai:class.Timestamped.property.createdAt";
|
|
219
197
|
}) | (import("@astrale-os/sdk/schema").ResolvedProperty<import("@astrale-os/sdk/schema").Value, true> & {
|
|
220
198
|
readonly name: "updatedAt";
|
|
221
199
|
readonly key: "kernel.astrale.ai:class.Timestamped.property.updatedAt";
|
|
222
200
|
});
|
|
223
201
|
readonly effectiveInstanceMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
202
|
+
body: string;
|
|
203
|
+
}, {
|
|
204
|
+
readonly mode: 'binary';
|
|
205
|
+
}, "authorized", false, "default">>, "invokeVercelFormat", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
224
206
|
path: string;
|
|
225
207
|
body: string;
|
|
226
208
|
headers?: Record<string, string> | undefined;
|
|
209
|
+
contentType?: string | undefined;
|
|
227
210
|
}, {
|
|
228
211
|
readonly mode: 'binary';
|
|
229
212
|
}, "authorized", false, "default">>, "invoke", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
@@ -234,41 +217,13 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
234
217
|
body: string;
|
|
235
218
|
}, {
|
|
236
219
|
readonly mode: 'binary';
|
|
237
|
-
}, "authorized", false, "default">>, "invokeAnthropicFormat", "self"
|
|
238
|
-
|
|
239
|
-
}, {
|
|
240
|
-
readonly mode: 'binary';
|
|
241
|
-
}, "authorized", false, "default">>, "invokeVercelFormat", "self">;
|
|
242
|
-
readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<Record<string, never>, {
|
|
243
|
-
readonly mode: 'value';
|
|
244
|
-
readonly value: {
|
|
245
|
-
name: string;
|
|
246
|
-
modelId: string;
|
|
247
|
-
provider: "azure" | "google" | "workers-ai";
|
|
248
|
-
contextWindow: number;
|
|
249
|
-
maxOutputTokens: number;
|
|
250
|
-
modality: {
|
|
251
|
-
input: string[];
|
|
252
|
-
output: string[];
|
|
253
|
-
};
|
|
254
|
-
capabilities: {
|
|
255
|
-
toolUse: boolean;
|
|
256
|
-
vision: boolean;
|
|
257
|
-
reasoning: boolean;
|
|
258
|
-
fileInput: boolean;
|
|
259
|
-
structuredOutput: boolean;
|
|
260
|
-
streaming: boolean;
|
|
261
|
-
caching: boolean;
|
|
262
|
-
};
|
|
263
|
-
pricing: Record<string, string>;
|
|
264
|
-
id: string;
|
|
265
|
-
description: string;
|
|
266
|
-
}[];
|
|
267
|
-
}, "authenticated", true, "default">>, "list", "self"> | import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
220
|
+
}, "authorized", false, "default">>, "invokeAnthropicFormat", "self">;
|
|
221
|
+
readonly effectiveStaticMethods: import("@astrale-os/sdk/schema").AuthoredMethodProjection<import("@astrale-os/sdk/schema").Method<import("@astrale-os/sdk/schema").CallableProjection<{
|
|
268
222
|
name: string;
|
|
269
223
|
description?: string | undefined;
|
|
270
224
|
modelId: string;
|
|
271
225
|
provider: "azure" | "google" | "workers-ai";
|
|
226
|
+
upstreamFormat: "anthropic" | "openai";
|
|
272
227
|
contextWindow: number;
|
|
273
228
|
maxOutputTokens: number;
|
|
274
229
|
modality: {
|
|
@@ -291,6 +246,7 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
291
246
|
name: string;
|
|
292
247
|
modelId: string;
|
|
293
248
|
provider: "azure" | "google" | "workers-ai";
|
|
249
|
+
upstreamFormat: "anthropic" | "openai";
|
|
294
250
|
contextWindow: number;
|
|
295
251
|
maxOutputTokens: number;
|
|
296
252
|
modality: {
|
|
@@ -316,6 +272,16 @@ export declare const schema: import("@astrale-os/sdk/schema").DefinedSchema<"ai-
|
|
|
316
272
|
readonly views: {
|
|
317
273
|
application: import("@astrale-os/sdk/schema").View;
|
|
318
274
|
};
|
|
275
|
+
readonly core: {
|
|
276
|
+
nodes: {
|
|
277
|
+
'kimi-k2-7-code': import("@astrale-os/sdk/schema").CoreNode;
|
|
278
|
+
'gemini-3-5-flash': import("@astrale-os/sdk/schema").CoreNode;
|
|
279
|
+
'gpt-5-6-sol': import("@astrale-os/sdk/schema").CoreNode;
|
|
280
|
+
'gpt-5-6-terra': import("@astrale-os/sdk/schema").CoreNode;
|
|
281
|
+
'gpt-5-6-luna': import("@astrale-os/sdk/schema").CoreNode;
|
|
282
|
+
'claude-opus-5': import("@astrale-os/sdk/schema").CoreNode;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
319
285
|
}>>;
|
|
320
286
|
export type AIGatewaySchema = typeof schema;
|
|
321
287
|
export type AIGatewayDomain = language.DomainOf<typeof schema>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { KernelSchema, defineSchema, view } from '@astrale-os/sdk/schema';
|
|
2
|
+
import { claudeOpus5, gemini35Flash, gpt56Luna, gpt56Sol, gpt56Terra, kimiK27Code, } from './catalog/index.js';
|
|
3
|
+
import { AIModel } from './model/index.js';
|
|
4
|
+
export const schema = defineSchema('ai-gateway.astrale.ai', {
|
|
5
|
+
dependencies: { kernel: KernelSchema },
|
|
6
|
+
classes: { AIModel },
|
|
7
|
+
views: {
|
|
8
|
+
application: view({}),
|
|
9
|
+
},
|
|
10
|
+
core: {
|
|
11
|
+
nodes: {
|
|
12
|
+
'kimi-k2-7-code': kimiK27Code,
|
|
13
|
+
'gemini-3-5-flash': gemini35Flash,
|
|
14
|
+
'gpt-5-6-sol': gpt56Sol,
|
|
15
|
+
'gpt-5-6-terra': gpt56Terra,
|
|
16
|
+
'gpt-5-6-luna': gpt56Luna,
|
|
17
|
+
'claude-opus-5': claudeOpus5,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-domains/ai-gateway",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/astrale-os/domains.git",
|
|
@@ -24,25 +24,38 @@
|
|
|
24
24
|
"./package.json": "./package.json"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
|
-
"access": "public"
|
|
27
|
+
"access": "public",
|
|
28
|
+
"registry": "https://registry.npmjs.org/"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@astrale-os/sdk": "0.5.0-beta.
|
|
31
|
+
"@astrale-os/sdk": "0.5.0-beta.64",
|
|
31
32
|
"zod": "^4.4.3"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
35
|
+
"@ai-sdk/anthropic": "^4.0.39",
|
|
36
|
+
"@ai-sdk/azure": "^4.0.44",
|
|
37
|
+
"@ai-sdk/openai": "^4.0.43",
|
|
38
|
+
"@anthropic-ai/sdk": "0.117.1",
|
|
39
|
+
"@astrale-os/adapter-astrale": "0.5.0-beta.60",
|
|
40
|
+
"@astrale-os/adapter-cloudflare": "0.5.0-beta.67",
|
|
36
41
|
"@astrale-os/ox": ">=0.1.3 <1.0.0",
|
|
37
|
-
"@astrale-os/shell": "0.4.2-beta.
|
|
38
|
-
"@astrale-os/shell-react": "0.3.2-beta.
|
|
42
|
+
"@astrale-os/shell": "0.4.2-beta.6",
|
|
43
|
+
"@astrale-os/shell-react": "0.3.2-beta.3",
|
|
44
|
+
"@astrale-os/ui": "0.3.0-beta.7",
|
|
45
|
+
"@google/generative-ai": "0.24.1",
|
|
39
46
|
"@tailwindcss/vite": "^4.0.6",
|
|
40
47
|
"@tanstack/react-router": "1.170.17",
|
|
41
48
|
"@tanstack/router-plugin": "1.168.19",
|
|
49
|
+
"@testing-library/react": "16.3.2",
|
|
50
|
+
"@testing-library/user-event": "14.6.1",
|
|
42
51
|
"@types/node": "^22.0.0",
|
|
43
52
|
"@types/react": "^19.2.0",
|
|
44
53
|
"@types/react-dom": "^19.2.0",
|
|
45
54
|
"@vitejs/plugin-react": "^6.0.5",
|
|
55
|
+
"ai": "^7.0.68",
|
|
56
|
+
"jsdom": "30.0.1",
|
|
57
|
+
"llm-bridge": "^2.0.1",
|
|
58
|
+
"openai": "7.5.0",
|
|
46
59
|
"oxlint": ">=1.78.0 <2.0.0",
|
|
47
60
|
"react": "^19.2.0",
|
|
48
61
|
"react-dom": "^19.2.0",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { KernelSchema, defineSchema, view } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { AIModel } from '#schema/model';
|
|
3
|
-
export const schema = defineSchema('ai-gateway.astrale.ai', {
|
|
4
|
-
dependencies: { kernel: KernelSchema },
|
|
5
|
-
classes: { AIModel },
|
|
6
|
-
views: {
|
|
7
|
-
application: view({}),
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { K, method, nodeClass, output } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
const modality = z.strictObject({ input: z.array(z.string()), output: z.array(z.string()) });
|
|
4
|
-
const capabilities = z.strictObject({
|
|
5
|
-
toolUse: z.boolean(),
|
|
6
|
-
vision: z.boolean(),
|
|
7
|
-
reasoning: z.boolean(),
|
|
8
|
-
fileInput: z.boolean(),
|
|
9
|
-
structuredOutput: z.boolean(),
|
|
10
|
-
streaming: z.boolean(),
|
|
11
|
-
caching: z.boolean(),
|
|
12
|
-
});
|
|
13
|
-
const modelInput = z.strictObject({
|
|
14
|
-
name: z.string().min(1).max(160),
|
|
15
|
-
description: z.string().max(5_000).optional(),
|
|
16
|
-
modelId: z.string().min(1).max(512),
|
|
17
|
-
provider: z.enum(['workers-ai', 'google', 'azure']),
|
|
18
|
-
contextWindow: z.number().int().positive(),
|
|
19
|
-
maxOutputTokens: z.number().int().positive(),
|
|
20
|
-
modality,
|
|
21
|
-
capabilities,
|
|
22
|
-
pricing: z.record(z.string(), z.string()),
|
|
23
|
-
});
|
|
24
|
-
const modelOutput = modelInput.extend({ id: z.string(), description: z.string() });
|
|
25
|
-
export const AIModel = nodeClass({
|
|
26
|
-
description: 'One permissioned upstream model exposed through Cloudflare AI Gateway.',
|
|
27
|
-
extends: [K.classes.Named, K.classes.Descriptable, K.classes.Timestamped],
|
|
28
|
-
properties: {
|
|
29
|
-
modelId: z.string().min(1).max(512),
|
|
30
|
-
provider: z.enum(['workers-ai', 'google', 'azure']),
|
|
31
|
-
contextWindow: z.number().int().positive(),
|
|
32
|
-
maxOutputTokens: z.number().int().positive(),
|
|
33
|
-
modality,
|
|
34
|
-
capabilities,
|
|
35
|
-
pricing: z.record(z.string(), z.string()),
|
|
36
|
-
},
|
|
37
|
-
methods: {
|
|
38
|
-
register: method({ auth: 'authorized', static: true, input: modelInput, output: modelOutput }),
|
|
39
|
-
list: method({
|
|
40
|
-
auth: 'authenticated',
|
|
41
|
-
static: true,
|
|
42
|
-
input: z.strictObject({}),
|
|
43
|
-
output: z.array(modelOutput),
|
|
44
|
-
}),
|
|
45
|
-
invoke: method({
|
|
46
|
-
auth: 'authorized',
|
|
47
|
-
input: z.strictObject({
|
|
48
|
-
path: z.string().min(1).max(1_024),
|
|
49
|
-
body: z.string().max(10 * 1024 * 1024),
|
|
50
|
-
headers: z.record(z.string(), z.string()).default({}),
|
|
51
|
-
}),
|
|
52
|
-
output: output.binary(),
|
|
53
|
-
}),
|
|
54
|
-
invokeOpenaiFormat: method({
|
|
55
|
-
auth: 'authorized',
|
|
56
|
-
input: z.strictObject({ body: z.string().max(10 * 1024 * 1024) }),
|
|
57
|
-
output: output.binary(),
|
|
58
|
-
}),
|
|
59
|
-
invokeAnthropicFormat: method({
|
|
60
|
-
auth: 'authorized',
|
|
61
|
-
input: z.strictObject({ body: z.string().max(10 * 1024 * 1024) }),
|
|
62
|
-
output: output.binary(),
|
|
63
|
-
}),
|
|
64
|
-
invokeVercelFormat: method({
|
|
65
|
-
auth: 'authorized',
|
|
66
|
-
input: z.strictObject({ body: z.string().max(10 * 1024 * 1024) }),
|
|
67
|
-
output: output.binary(),
|
|
68
|
-
}),
|
|
69
|
-
},
|
|
70
|
-
});
|