mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(Refactor) Code Quality improvement - Use Common base handler for cloudflare/
provider (#7127)
* add get_complete_url to base config * cloudflare - refactor to following existing pattern * migrate cloudflare chat completions to base llm http handler * fix unused import * fix fake stream in cloudflare * fix cloudflare transformation * fix naming for BaseModelResponseIterator * add async cloudflare streaming test * test cloudflare * add handler.py * add handler.py in cohere handler.py
This commit is contained in:
parent
1ef311343c
commit
bd39e1ab5d
14 changed files with 391 additions and 268 deletions
5
litellm/llms/cloudflare/chat/handler.py
Normal file
5
litellm/llms/cloudflare/chat/handler.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
"""
|
||||
Cloudflare - uses `llm_http_handler.py` to make httpx requests
|
||||
|
||||
Request/Response transformation is handled in `transformation.py`
|
||||
"""
|
Loading…
Add table
Add a link
Reference in a new issue