How to add cloudflare workers AI via litellm proxy UI? #4513
-
|
Since cloudflare has officially supported OpenAI-compatible api for Cloudflare workers AI (see https://developers.cloudflare.com/workers-ai/configuration/open-ai-compatibility/), I'm thinking how we could we add it into llmlite proxy UI? For example, the sample API_BASE_URL will be "https://api.cloudflare.com/client/v4/accounts/${env.CLOUDFLARE_ACCOUNT_ID}/ai/v1" Here is the UI that I am tinkering with to add in this Cloudflare Workers AI....
Hope for help, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
I put these on config.yaml instead |
Beta Was this translation helpful? Give feedback.
-
|
Did you manage to make it work ? |
Beta Was this translation helpful? Give feedback.
-
|
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: To find your cloudflare account ID: https://developers.cloudflare.com/fundamentals/setup/find-account-and-zone-ids/ Below is the config.yaml file I set up to connect various LLM api, like gemini, github models, openai, AWS bedrock. You could take it as reference: Just some self-promo, I am a blogger at https://tanyongsheng.com/blog/ and https://www.tanyongsheng.com/note/ who is keen on open source technology. |
Beta Was this translation helpful? Give feedback.

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:
To find your cloudflare account ID: https://developers.cloudfla…