@jacobbd/relay-ai 0.10.0 → 0.11.0
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 +1 -1
- package/dist/{chunk-2NXLK3O6.js → chunk-G6QWYYAY.js} +36 -33
- package/dist/chunk-G6QWYYAY.js.map +1 -0
- package/dist/{chunk-P4IS6537.js → chunk-SFN33VAE.js} +5 -3
- package/dist/chunk-SFN33VAE.js.map +1 -0
- package/dist/cli.js +27 -27
- package/dist/cli.js.map +1 -1
- package/dist/core/index.js +33 -28
- package/dist/core/index.js.map +1 -1
- package/dist/{provider-templates-7M24FAAI.js → provider-templates-TZOM62WC.js} +2 -2
- package/dist/{ui-command-6ZMM5K5K.js → ui-command-RJVKDGGG.js} +4 -4
- package/package.json +22 -23
- package/dist/chunk-2NXLK3O6.js.map +0 -1
- package/dist/chunk-P4IS6537.js.map +0 -1
- /package/dist/{provider-templates-7M24FAAI.js.map → provider-templates-TZOM62WC.js.map} +0 -0
- /package/dist/{ui-command-6ZMM5K5K.js.map → ui-command-RJVKDGGG.js.map} +0 -0
package/dist/core/index.js
CHANGED
|
@@ -50,7 +50,7 @@ import { join as join2 } from "path";
|
|
|
50
50
|
// package.json
|
|
51
51
|
var package_default = {
|
|
52
52
|
name: "@jacobbd/relay-ai",
|
|
53
|
-
version: "0.
|
|
53
|
+
version: "0.11.0",
|
|
54
54
|
publishConfig: {
|
|
55
55
|
access: "public"
|
|
56
56
|
},
|
|
@@ -82,7 +82,7 @@ var package_default = {
|
|
|
82
82
|
"README.md"
|
|
83
83
|
],
|
|
84
84
|
engines: {
|
|
85
|
-
node: ">=
|
|
85
|
+
node: ">=22"
|
|
86
86
|
},
|
|
87
87
|
scripts: {
|
|
88
88
|
build: "tsup && tsup --config tsup.core.config.ts && node scripts/copy-ui-assets.mjs",
|
|
@@ -96,35 +96,34 @@ var package_default = {
|
|
|
96
96
|
prepublishOnly: "npm run release:check && npm run build"
|
|
97
97
|
},
|
|
98
98
|
dependencies: {
|
|
99
|
-
"@ai-sdk/alibaba": "^
|
|
100
|
-
"@ai-sdk/amazon-bedrock": "^
|
|
101
|
-
"@ai-sdk/azure": "^
|
|
102
|
-
"@ai-sdk/cerebras": "^
|
|
103
|
-
"@ai-sdk/cohere": "^
|
|
104
|
-
"@ai-sdk/deepinfra": "^
|
|
105
|
-
"@ai-sdk/gateway": "^
|
|
106
|
-
"@ai-sdk/google": "^
|
|
107
|
-
"@ai-sdk/google-vertex": "^
|
|
108
|
-
"@ai-sdk/groq": "^
|
|
109
|
-
"@ai-sdk/mistral": "^
|
|
110
|
-
"@ai-sdk/openai": "^
|
|
111
|
-
"@ai-sdk/openai-compatible": "^
|
|
112
|
-
"@ai-sdk/perplexity": "^
|
|
113
|
-
"@ai-sdk/togetherai": "^
|
|
114
|
-
"@ai-sdk/vercel": "^
|
|
115
|
-
"@ai-sdk/xai": "^
|
|
99
|
+
"@ai-sdk/alibaba": "^2.0.41",
|
|
100
|
+
"@ai-sdk/amazon-bedrock": "^5.0.76",
|
|
101
|
+
"@ai-sdk/azure": "^4.0.63",
|
|
102
|
+
"@ai-sdk/cerebras": "^3.0.44",
|
|
103
|
+
"@ai-sdk/cohere": "^4.0.37",
|
|
104
|
+
"@ai-sdk/deepinfra": "^3.0.44",
|
|
105
|
+
"@ai-sdk/gateway": "^4.0.75",
|
|
106
|
+
"@ai-sdk/google": "^4.0.64",
|
|
107
|
+
"@ai-sdk/google-vertex": "^5.0.76",
|
|
108
|
+
"@ai-sdk/groq": "^4.0.37",
|
|
109
|
+
"@ai-sdk/mistral": "^4.0.39",
|
|
110
|
+
"@ai-sdk/openai": "^4.0.60",
|
|
111
|
+
"@ai-sdk/openai-compatible": "^3.0.44",
|
|
112
|
+
"@ai-sdk/perplexity": "^4.0.39",
|
|
113
|
+
"@ai-sdk/togetherai": "^3.0.45",
|
|
114
|
+
"@ai-sdk/vercel": "^3.0.30",
|
|
115
|
+
"@ai-sdk/xai": "^4.0.54",
|
|
116
116
|
"@clack/prompts": "^0.9.1",
|
|
117
|
-
"@openrouter/ai-sdk-provider": "^
|
|
118
|
-
ai: "^
|
|
117
|
+
"@openrouter/ai-sdk-provider": "^3.0.0",
|
|
118
|
+
ai: "^7.0.93",
|
|
119
119
|
"cross-spawn": "^7.0.6",
|
|
120
|
-
"gitlab-ai-provider": "^6.
|
|
120
|
+
"gitlab-ai-provider": "^6.15.0",
|
|
121
121
|
graphql: "^16.14.2",
|
|
122
122
|
"ipaddr.js": "^2.4.0",
|
|
123
123
|
"node-forge": "^1.4.0",
|
|
124
124
|
open: "^11.0.0",
|
|
125
125
|
picocolors: "^1.1.1",
|
|
126
126
|
"smol-toml": "^1.6.1",
|
|
127
|
-
"venice-ai-sdk-provider": "^2.0.2",
|
|
128
127
|
ws: "^8.21.0",
|
|
129
128
|
zod: "^3.25.76"
|
|
130
129
|
},
|
|
@@ -874,6 +873,9 @@ var OPENAI_CHAT_COMPLETIONS_ONLY = [
|
|
|
874
873
|
function shouldUseOpenAiResponsesEndpoint(modelId) {
|
|
875
874
|
return !OPENAI_CHAT_COMPLETIONS_ONLY.includes(modelId.toLowerCase());
|
|
876
875
|
}
|
|
876
|
+
function resolveProviderNpm(npm) {
|
|
877
|
+
return npm === "venice-ai-sdk-provider" ? "@ai-sdk/openai-compatible" : npm;
|
|
878
|
+
}
|
|
877
879
|
function findCreateFactory(mod) {
|
|
878
880
|
for (const value of Object.values(mod)) {
|
|
879
881
|
if (typeof value === "function" && value.name.startsWith("create")) {
|
|
@@ -903,7 +905,8 @@ async function loadSdkProviderFactory(npm) {
|
|
|
903
905
|
return cached;
|
|
904
906
|
}
|
|
905
907
|
async function createLanguageModel(spec) {
|
|
906
|
-
const
|
|
908
|
+
const npm = resolveProviderNpm(spec.npm);
|
|
909
|
+
const { modelId, apiKey, baseURL } = spec;
|
|
907
910
|
if (npm === VERTEX_ANTHROPIC_NPM) {
|
|
908
911
|
if (!spec.vertex?.project) {
|
|
909
912
|
throw new Error("Vertex project is required for @ai-sdk/google-vertex/anthropic");
|
|
@@ -1997,7 +2000,7 @@ var PROVIDER_TEMPLATES = [
|
|
|
1997
2000
|
id: "venice",
|
|
1998
2001
|
name: "Venice AI",
|
|
1999
2002
|
authType: "api",
|
|
2000
|
-
npm: "
|
|
2003
|
+
npm: "@ai-sdk/openai-compatible",
|
|
2001
2004
|
defaultBaseUrl: "https://api.venice.ai/api/v1",
|
|
2002
2005
|
signupUrl: "https://venice.ai/settings/api",
|
|
2003
2006
|
modelSource: "api-list",
|
|
@@ -2099,7 +2102,9 @@ var PROVIDER_TEMPLATES = [
|
|
|
2099
2102
|
{
|
|
2100
2103
|
id: "antigravity",
|
|
2101
2104
|
name: "Cloud Code Assist OAuth (Google)",
|
|
2102
|
-
|
|
2105
|
+
// Compact label users actually recognise: every surface that shows this
|
|
2106
|
+
// provider calls it Antigravity, and it is also the shortest of the two.
|
|
2107
|
+
shortName: "Antigravity",
|
|
2103
2108
|
authType: "oauth",
|
|
2104
2109
|
npm: "@ai-sdk/openai-compatible",
|
|
2105
2110
|
signupUrl: "https://antigravity.google",
|
|
@@ -2315,7 +2320,7 @@ async function withReasoningProviderOptions(model, providerOptions) {
|
|
|
2315
2320
|
// interface; everything Core builds is a concrete current-spec model.
|
|
2316
2321
|
model,
|
|
2317
2322
|
middleware: {
|
|
2318
|
-
specificationVersion: "
|
|
2323
|
+
specificationVersion: "v4",
|
|
2319
2324
|
transformParams: async ({ params }) => ({
|
|
2320
2325
|
...params,
|
|
2321
2326
|
providerOptions: deepMergeProviderOptions(
|
|
@@ -2331,7 +2336,7 @@ async function withRequestHeaders(model, headers) {
|
|
|
2331
2336
|
return wrapLanguageModel2({
|
|
2332
2337
|
model,
|
|
2333
2338
|
middleware: {
|
|
2334
|
-
specificationVersion: "
|
|
2339
|
+
specificationVersion: "v4",
|
|
2335
2340
|
transformParams: async ({ params }) => ({
|
|
2336
2341
|
...params,
|
|
2337
2342
|
headers: mergeHeaders(
|