(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:
Ishaan Jaff 2024-12-10 10:12:22 -08:00 committed by GitHub
parent 1ef311343c
commit bd39e1ab5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 391 additions and 268 deletions

View file

@ -0,0 +1,5 @@
"""
Cloudflare - uses `llm_http_handler.py` to make httpx requests
Request/Response transformation is handled in `transformation.py`
"""