diff --git a/examples/ai/demo.py b/examples/ai/demo.py index 18a35dd46a2..8244662c683 100644 --- a/examples/ai/demo.py +++ b/examples/ai/demo.py @@ -7,10 +7,9 @@ if account_id is None: sys.exit("CLOUDFLARE_ACCOUNT_ID is not defined") - client = Cloudflare() -t = client.workers.ai.run( +t = client.ai.run( "@cf/meta/m2m100-1.2b", account_id=account_id, text="I'll have an order of the moule frites",