Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join
Nneurorotic5/13/2024

The docs seem out of date, there is no "

The docs seem out of date, there is no "Account details section contains your Account ID" section on workers and pages ->overview https://developers.cloudflare.com/fundamentals/setup/find-account-and-zone-ids/#find-account-id-workers-and-pages And the only way I found to find it is by creating a domain (even though I did not intend to register any w/ CF) but then finally noticed the account_id is after the dash.cloudflare.com/{ACCOUNT_ID}/ on the site 🤦‍♂️ This could be much clearer for first-time users....
Jjameskraus5/13/2024

@element14 , did you ever figure this

@element14 , did you ever figure this out? I'm getting this same FILE_PARSE_ERROR with my autotrained finetune
Rrob5/10/2024

not yet but team said params are on the

not yet but team said params are on the way for some models
Ttottocorro4/15/2024

Error while executing this audio file

Error while executing this audio file with whisper model: https://cdn.openai.com/whisper/draft-20220913a/micro-machines.wav [wrangler:err] InferenceUpstreamError: InferenceUpstreamError: ERROR 3010: Invalid or incomplete input for the model: failed to decode JSON: Request is too large...
Sschrew4/8/2024

CPU time limit exceeded, any way to check sdk version?

Is there any way to check the sdk version? I redeployed, but am still experiencing the same timeout issues today
CCyb3r-Jak34/6/2024

Is there a reason that the API

Is there a reason that the API permission name for Workers AI changed from Cloudflare AI Read to Workers AI Read? It caused my terraform to break
JJames4/6/2024

Thread on Workers AI onboarding for a

Thread on Workers AI onboarding for a new user 🧵
Ttottocorro4/4/2024

M2M100 Supported languages

Just tried using the M2M100 model, it works well but why are some languages not supported even though they are included in the M2M100 supported languages. succeed: target_lang fr { "translated_text": "Votre employé a accès aux liens suivants : AI" }...
Aalukach3/17/2024

Have others been able to run text-to-

Have others been able to run text-to-image models in NextJS apps that run on Pages? I have a nextJS app set up via C3 and a server action performing the following: ``` "use server"; ...
кактус3/7/2024

I'm a bit confused rn.

I'm a bit confused rn. Why am I getting this error? Did I forget to bind something? 16:45:04.582 Executing user command: npx wrangler tail AI 16:45:07.041 ...
Dd2/27/2024

Howdy y'all, I'm trying your API for the

Howdy y'all, I'm trying your API for the Worker AI stuff by following the example but keep getting errors: ```bash curl -X POST \ https://api.cloudflare.com/client/v4/accounts/MYACCTID/ai/run/@cf/meta/llama-2-7b-chat-int8 \ -H "Authorization: Bearer MYTOKEN" \ -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 "}]}'...
CCedrick.L12/5/2023

```

``` curl --location 'https://api.cloudflare.com/client/v4/accounts/{my-account}/ai/run/@cf/mistral/mistral-7b-instruct-v0.1' \ --header 'Authorization: Bearer {mytoken}' \ --header 'Content-Type: application/json' \ --data '{ ...
BBen-xD10/29/2023

I increased the detail:

I increased the detail:
"Convert the users next message content into a duration in seconds. Provide the user only 1 number, with no other words, units or formatting. For example, if the user says '5 minutes', you should return '300'. If the user says 'the time it takes for the average person to run 100m', you should return '20'."
But even ChatGPT 3.5 turbo isn't very good at this. Running it a few times: 31536000s 30000000s...
EErisa10/4/2023

From my understanding you should be able

From my understanding you should be able to stream the response body returned by ai.run?
NNick10/4/2023

Hi I m trying out the LLM worker and I m

Hi! I'm trying out the LLM worker and I'm wondering if it's possible to return the response as a stream? similar to https://developers.cloudflare.com/workers/examples/openai-sdk-streaming/ ?
FFalco10/3/2023

So when running BGE models for

So when running BGE models for embeddings you must prepend your docs with Represent this sentence for searching relevant passages:. From what I can see this is uncessesary in the WorkersAI API right? So the API does that for me automatically? In both batch and single inputs?
UŁukasz10/2/2023

Full code straight from the tutorial

Full code, straight from the tutorial: ``` import { Ai } from '@cloudflare/ai' export default {...