@blaxel/vercel 0.2.59-preview.42 → 0.2.59
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/model.js +2 -2
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/model.js +2 -2
- package/package.json +2 -2
package/dist/esm/model.js
CHANGED
|
@@ -14,8 +14,8 @@ export const blModel = async (model, options) => {
|
|
|
14
14
|
throw new Error(`Model ${model} not found`);
|
|
15
15
|
}
|
|
16
16
|
await authenticate();
|
|
17
|
-
const type = modelData?.spec
|
|
18
|
-
const modelId = modelData?.spec
|
|
17
|
+
const type = modelData?.spec.runtime?.type || "openai";
|
|
18
|
+
const modelId = modelData?.spec.runtime?.model || "gpt-4o";
|
|
19
19
|
// Custom fetch function that refreshes authentication on each request
|
|
20
20
|
const authenticatedFetch = async (input, init) => {
|
|
21
21
|
await authenticate();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaxel/vercel",
|
|
3
|
-
"version": "0.2.59
|
|
3
|
+
"version": "0.2.59",
|
|
4
4
|
"description": "Blaxel SDK for TypeScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blaxel, INC (https://blaxel.ai)",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@ai-sdk/openai": "^2.0.57",
|
|
51
51
|
"@ai-sdk/provider": "^2.0.0",
|
|
52
52
|
"ai": "^5.0.82",
|
|
53
|
-
"@blaxel/core": "0.2.59
|
|
53
|
+
"@blaxel/core": "0.2.59"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@eslint/js": "^9.26.0",
|