Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 63f1839

Browse files
committed
now that AI methods are in library - no need for CLOUDFLARE_API_EXTRAS code
1 parent 0c1fb92 commit 63f1839

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

examples/example_ai_images.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
def doit(account_name, prompt_text):
1212

13-
# Or place these in your cloudflare.cfg file
14-
os.environ['CLOUDFLARE_API_EXTRAS'] = '/accounts/:id/ai/run/@cf/stabilityai/stable-diffusion-xl-base-1.0'
15-
1613
# We set the timeout because these AI calls take longer than normal API calls
1714
cf = CloudFlare.CloudFlare(global_request_timeout=120)
1815

examples/example_ai_speechrecognition.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ def user_agent():
2222

2323
def doit(account_name, audio_data):
2424

25-
# Or place these in your cloudflare.cfg file
26-
os.environ['CLOUDFLARE_API_EXTRAS'] = '/accounts/:id/ai/run/@cf/openai/whisper'
27-
2825
# We set the timeout because these AI calls take longer than normal API calls
2926
cf = CloudFlare.CloudFlare(global_request_timeout=120)
3027

examples/example_ai_translate.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
def doit(account_name, english_text):
1212

13-
# Or place these in your cloudflare.cfg file
14-
os.environ['CLOUDFLARE_API_EXTRAS'] = '/accounts/:id/ai/run/@cf/meta/m2m100-1.2b'
15-
1613
# We set the timeout because these AI calls take longer than normal API calls
1714
cf = CloudFlare.CloudFlare(global_request_timeout=120)
1815

0 commit comments

Comments
 (0)