@blaxel/vercel 0.2.62 → 0.2.63-preview.67

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.
Files changed (2) hide show
  1. package/README.md +16 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -74,7 +74,7 @@ This package includes a helper function that creates a reference to a model depl
74
74
  ```typescript
75
75
  // With Vercel AI
76
76
  import { blModel } from "@blaxel/vercel";
77
- const model = await blModel("claude-3-5-sonnet");
77
+ const model = await blModel("gpt-5-mini");
78
78
  ```
79
79
 
80
80
  ### MCP tool use
@@ -83,10 +83,23 @@ Blaxel lets you deploy and host Model Context Protocol (MCP) servers, accessible
83
83
 
84
84
  This package includes a helper function that retrieves and returns tool definitions from a Blaxel-hosted MCP server in the format required by specific frameworks.
85
85
 
86
+ Here is an example of retrieving tool definitions from a Blaxel sandbox's MCP server in the format required by Vercel's AI SDK:
87
+
86
88
  ```typescript
87
- // With Vercel AI
89
+ import { SandboxInstance } from "@blaxel/core";
88
90
  import { blTools } from "@blaxel/vercel";
89
- const tools = await blTools(['blaxel-search'])
91
+
92
+ // Create a new sandbox
93
+ const sandbox = await SandboxInstance.createIfNotExists({
94
+ name: "my-sandbox",
95
+ image: "blaxel/base-image:latest",
96
+ memory: 4096,
97
+ region: "us-pdx-1",
98
+ ttl: "24h"
99
+ });
100
+
101
+ // Get sandbox tools
102
+ const tools = await blTools(['sandbox/my-sandbox'])
90
103
  ```
91
104
 
92
105
  ### Telemetry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/vercel",
3
- "version": "0.2.62",
3
+ "version": "0.2.63-preview.67",
4
4
  "description": "Blaxel SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",
@@ -58,7 +58,7 @@
58
58
  "@ai-sdk/mistral": "^2.0.24",
59
59
  "@ai-sdk/openai": "^2.0.57",
60
60
  "@ai-sdk/provider": "^2.0.0",
61
- "@blaxel/core": "0.2.62",
61
+ "@blaxel/core": "0.2.63-preview.67",
62
62
  "ai": "^5.0.82"
63
63
  },
64
64
  "devDependencies": {