@astrale-domains/ai-gateway 0.5.2 → 0.5.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/dist/schema/modules/model/classes/ai-model-class.d.ts +3 -0
- package/dist/schema/modules/model/classes/ai-model-class.js +1 -0
- package/dist/schema/modules/model/functions/invoke-ai-model-anthropic-format-method.js +1 -0
- package/dist/schema/modules/model/functions/invoke-ai-model-openai-format-method.js +1 -0
- package/dist/schema/modules/model/functions/invoke-ai-model-passthrough-method.js +1 -0
- package/dist/schema/modules/model/functions/invoke-ai-model-vercel-format-method.js +1 -0
- package/dist/schema/modules/model/functions/register-ai-model-method.js +1 -0
- package/dist/schema/schema.d.ts +3 -0
- package/package.json +5 -5
|
@@ -3,6 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { aiModelRequestBody } from '../types/ai-model-request-body.js';
|
|
4
4
|
export const invokeAIModelAnthropicFormatMethod = method({
|
|
5
5
|
auth: 'authorized',
|
|
6
|
+
policy: false,
|
|
6
7
|
input: z.strictObject({ body: aiModelRequestBody }),
|
|
7
8
|
output: output.binary(),
|
|
8
9
|
});
|
|
@@ -3,6 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { aiModelRequestBody } from '../types/ai-model-request-body.js';
|
|
4
4
|
export const invokeAIModelOpenAIFormatMethod = method({
|
|
5
5
|
auth: 'authorized',
|
|
6
|
+
policy: false,
|
|
6
7
|
input: z.strictObject({ body: aiModelRequestBody }),
|
|
7
8
|
output: output.binary(),
|
|
8
9
|
});
|
|
@@ -3,6 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { aiModelRequestBody } from '../types/ai-model-request-body.js';
|
|
4
4
|
export const invokeAIModelPassthroughMethod = method({
|
|
5
5
|
auth: 'authorized',
|
|
6
|
+
policy: false,
|
|
6
7
|
input: z.strictObject({
|
|
7
8
|
path: z.string().min(1).max(1_024),
|
|
8
9
|
body: aiModelRequestBody,
|
|
@@ -3,6 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
import { aiModelRequestBody } from '../types/ai-model-request-body.js';
|
|
4
4
|
export const invokeAIModelVercelFormatMethod = method({
|
|
5
5
|
auth: 'authorized',
|
|
6
|
+
policy: false,
|
|
6
7
|
input: z.strictObject({ body: aiModelRequestBody }),
|
|
7
8
|
output: output.binary(),
|
|
8
9
|
});
|
|
@@ -2,6 +2,7 @@ import { method } from '@astrale-os/sdk/schema';
|
|
|
2
2
|
import { aiModelInput, aiModelOutput } from '../types/ai-model-input.js';
|
|
3
3
|
export const registerAIModelMethod = method({
|
|
4
4
|
auth: 'authorized',
|
|
5
|
+
policy: false,
|
|
5
6
|
static: true,
|
|
6
7
|
input: aiModelInput,
|
|
7
8
|
output: aiModelOutput,
|
package/dist/schema/schema.d.ts
CHANGED
|
@@ -110,6 +110,9 @@ export declare const schema: import("@astrale-os/sdk/schema").AuthoredSchema<"ai
|
|
|
110
110
|
readonly mode: 'binary';
|
|
111
111
|
}, "authorized", false, false, undefined>>;
|
|
112
112
|
};
|
|
113
|
+
readonly policies: {
|
|
114
|
+
readonly read: true;
|
|
115
|
+
};
|
|
113
116
|
}>;
|
|
114
117
|
};
|
|
115
118
|
readonly views: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-domains/ai-gateway",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/astrale-os/domains.git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"registry": "https://registry.npmjs.org/"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@astrale-os/sdk": "0.6.0-beta.
|
|
31
|
+
"@astrale-os/sdk": "0.6.0-beta.31",
|
|
32
32
|
"zod": "4.4.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@ai-sdk/azure": "^4.0.46",
|
|
37
37
|
"@ai-sdk/openai": "^4.0.45",
|
|
38
38
|
"@anthropic-ai/sdk": "0.120.0",
|
|
39
|
-
"@astrale-os/adapter-cloudflare": "0.5.0-beta.
|
|
39
|
+
"@astrale-os/adapter-cloudflare": "0.5.0-beta.186",
|
|
40
40
|
"@astrale-os/ox": ">=0.1.4 <1.0.0",
|
|
41
|
-
"@astrale-os/shell": "0.7.0-beta.
|
|
42
|
-
"@astrale-os/shell-react": "0.6.0-beta.
|
|
41
|
+
"@astrale-os/shell": "0.7.0-beta.5",
|
|
42
|
+
"@astrale-os/shell-react": "0.6.0-beta.4",
|
|
43
43
|
"@astrale-os/ui": "1.0.0-beta.32",
|
|
44
44
|
"@google/generative-ai": "0.24.1",
|
|
45
45
|
"@tailwindcss/vite": "^4.3.3",
|