litellm/tests/unit/llms/cohere/chat
jesus-berri 05b76878b0
fix(cohere): map Cohere v2 finish_reason on non-streaming chat responses (#49529)
* fix(cohere): map Cohere v2 finish_reason on non-streaming chat responses

* fix(cohere): default a missing Cohere v2 finish_reason to stop instead of raising

A 200 body without finish_reason used to return stop and started raising KeyError after the mapping change, so fall back to COMPLETE
2026-11-02 12:42:23 -08:00
..
__init__.py
test_cohere_transformation.py fix(cohere): map Cohere v2 finish_reason on non-streaming chat responses (#49529) 2026-11-02 12:42:23 -08:00