Repository navigation
Conversation
720a110 to
2b4562e
Compare
2b4562e to
4dd128d
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
50d09ae to
ca1b841
Compare
Greptile SummaryAdds Cloudflare Workers AI embedding and rerank support
Confidence Score: 4/5The missing Cloudflare Cloudflare calls are reachable through the new public rerank route, but the adapter drops a defaulted unified parameter and omits document data even though the submitted contexts remain available for reconstruction Files Needing Attention: litellm/llms/cloudflare/rerank/transformation.py
|
| Filename | Overview |
|---|---|
| litellm/llms/cloudflare/embedding/transformation.py | Adds an embedding configuration that resolves Cloudflare's OpenAI-compatible endpoint and reuses the shared HTTP handler |
| litellm/llms/cloudflare/rerank/transformation.py | Adds native rerank request and response translation, but drops the public return_documents behavior |
| litellm/main.py | Adds Cloudflare to the shared embedding dispatch path with API-key and base-URL resolution |
| litellm/utils.py | Registers the new Cloudflare embedding and rerank provider configurations |
| litellm/rerank_api/main.py | Extends the public rerank provider type declarations to include Cloudflare |
Reviews (1): Last reviewed commit: "test(cloudflare): cover embedding dispat..." | Re-trigger Greptile
a47dd01 to
56de9db
Compare
PR overviewAll previously flagged issues have been addressed. No open security concerns remain on this pull request. Security reviewNo open security issues remain on this pull request. Fixed/addressed: 1 · PR risk: 0/10 |
56de9db to
21034da
Compare
|
hi @yuneng-berri is there a plan to add cloudflare updated api support to litellm? if so let me know how i can help out, tnx |
|
@prdai Hey sorry for the friction. reopening the PR now |
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
21034da to
880e4a4
Compare
|
hi @yuneng-berri i rebased this branch, the ci/cd failing seems to be resolved from #40996 let me know how we can work on getting this merged thanks! :) |
What changed
top_ninto Cloudflare contexts andtop_kWhy
The Cloudflare provider only exposed chat behavior even though Workers AI now supports additional API surfaces. This adds embeddings and reranking while keeping image and audio work separately scoped.
Validation
Related to #21115
Documentation PR: BerriAI/litellm-docs#704