@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/cjs/model.js
CHANGED
|
@@ -17,8 +17,8 @@ const blModel = async (model, options) => {
|
|
|
17
17
|
throw new Error(`Model ${model} not found`);
|
|
18
18
|
}
|
|
19
19
|
await (0, core_1.authenticate)();
|
|
20
|
-
const type = modelData?.spec
|
|
21
|
-
const modelId = modelData?.spec
|
|
20
|
+
const type = modelData?.spec.runtime?.type || "openai";
|
|
21
|
+
const modelId = modelData?.spec.runtime?.model || "gpt-4o";
|
|
22
22
|
// Custom fetch function that refreshes authentication on each request
|
|
23
23
|
const authenticatedFetch = async (input, init) => {
|
|
24
24
|
await (0, core_1.authenticate)();
|