Any tips?? I just made a image generator for it
Any tips?? I just made a image generator for it


env is on cc.env.AI@cf/meta/llama-3.2-3b-instruct in the playground, but it fails the type checks with latest version of the wrangler and @cloudflare/workers-types packages. I can "cheat" by doing this:
curl and when it does implement it inside the worker. Example request that works for me ->messages, in doubt ask any chatbot website to format this correctly for you.



X [ERROR] TypeError: Cannot read properties of undefined (reading 'run')cc.env.AI@cf/meta/llama-3.2-3b-instructcurlawait env.AI.run('@cf/meta/llama-3.2-3b-instruct' as never, {curl -X POST \
https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/ai/run/@cf/meta/llama-3-8b-instruct \
-H "Authorization: Bearer ${CLOUDFLARE_API_TOKEN}" \
-d '{
"messages": [
{
"role": "system",
"content": "You are a friendly assistant that helps write stories"
},
{
"role": "user",
"content": "Write a short story about a llama that goes on a journey to find an orange cloud "
}
]
}' \
| jq