You need to specify the named entrypoint in your Wrangler.toml.
You need to specify the named entrypoint in your Wrangler.toml.
The name of the entrypoint to bind to. If you do not specify an entrypoint, the default export of the Worker will be used.


compatibility_date = "2024-10-22"
[[env.staging.services]]
binding = "STORAGE_SERVICE"
service = "storage_service"
entrypoint = "StorageService"const response = await env.AI.run(
("@hf/meta-llama/meta-llama-3-8b-instruct",
payload
);
return new Response(response, {
headers: {
"content-type": "text/event-stream",
},
});