Skip to content

How to add cloudflare workers AI via litellm proxy UI? #4513

Discussion options

You must be logged in to vote

Hi @creedjhem, ya, I managed to get it work for Cloudflare Workers AI via using LiteLLM's config.yaml file:

Reference: https://docs.litellm.ai/docs/proxy/configs

For your config.yaml file, add these:

# CLOUDFLARE WORKERS AI
  - model_name: cloudflare/*
    litellm_params:
      model: cloudflare/*
      # Replace <YOUR_COUDFLARE_ACCOUNT_ID> with your cloudflare_account_id
      api_base: "https://api.cloudflare.com/client/v4/accounts/<YOUR_COUDFLARE_ACCOUNT_ID>/ai/run/"
      api_key: "<YOUR_CLOUDFLARE_API_KEY>"
      # not sure how to set  tpm, as it offers 10,000 tokens/day
      drop_params: true
      modify_params: true

To find your cloudflare account ID: https://developers.cloudfla…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tan-yong-sheng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants