Updated cohere v2 passthrough (#9997)

* Add cohere `/v2/chat` pass-through cost tracking support (#8235)

* feat(cohere_passthrough_handler.py): initial working commit with cohere passthrough cost tracking

* fix(v2_transformation.py): support cohere /v2/chat endpoint

* fix: fix linting errors

* fix: fix import

* fix(v2_transformation.py): fix linting error

* test: handle openai exception change
This commit is contained in:
Krish Dholakia 2025-04-14 19:51:01 -07:00 committed by GitHub
parent db857c74d4
commit 2ed593e052
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 742 additions and 20 deletions

View file

@ -683,6 +683,7 @@ async def pass_through_request( # noqa: PLR0915
end_time=end_time,
logging_obj=logging_obj,
cache_hit=False,
request_body=_parsed_body,
**kwargs,
)
)