Workers AI not supported on Vercel AI sdk providers? ``` const aiGateway = createAiGateway({ ac
Workers AI not supported on Vercel AI sdk providers?

const aiGateway = createAiGateway({
accountId: env.CF_ACCOUNT_ID,
gateway: GATEWAY_ID,
apiKey: env.CF_API_KEY,
options: {
cacheTtl: 3600,
},
});
const workersai = createWorkersAI({ binding: env.AI });
const model = workersai("@cf/meta/llama-3.1-8b-instruct", {
safePrompt: true,
});
const { text } = await generateText({
model: aiGateway(model),
prompt: "Write a multi-part greeting.",
});createWorkersAI({ binding: env.AI, gateway: { id: GATEWAY_ID }});
server.tool callback?toMarkdown method (rest api). The request looks like it was successful: I get document metadata, Contents, and numbered pages in response, but the pages themselves contain no data. However, there is data on the pdf's pages (text and images). Do you have any explanations/solutions for this?createWorkersAI({ binding: env.AI, gateway: { id: GATEWAY_ID }});server.tooltoMarkdownimport { createMcpHandler } from "agents/mcp";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
const server = new McpServer({
name: "Hello MCP Server",
version: "1.0.0",
});
server.tool(
"hello",
"Returns a greeting message",
{ name: z.string().optional() },
async ({ name }) => {
return {
content: [
{
text: `Hello, ${name ?? "World"}!`,
type: "text",
},
],
};
},
);
export default {
fetch: async (request: Request, env: Env, ctx: ExecutionContext) => {
const handler = createMcpHandler(server);
return handler(request, env, ctx);
},
};# 2.pdf
## Metadata
- PDFFormatVersion=1.4
- IsLinearized=false
- IsAcroFormPresent=false
...
## Contents
### Page 1
### Page 2
### Page 3
...