openai-agents-python/tests/models
Daniele Morotti e11b822d5f
Fix stream error using LiteLLM (#589)
In response to issue #587 , I implemented a solution to first check if
`refusal` and `usage` attributes exist in the `delta` object.

I added a unit test similar to `test_openai_chatcompletions_stream.py`.

Let me know if I should change something.

---------

Co-authored-by: Rohan Mehta <rm@openai.com>
2025-04-24 12:53:39 -04:00
..
__init__.py Docs and tests for litellm (#561) 2025-04-21 16:59:01 -04:00
conftest.py Docs and tests for litellm (#561) 2025-04-21 16:59:01 -04:00
test_litellm_chatcompletions_stream.py Fix stream error using LiteLLM (#589) 2025-04-24 12:53:39 -04:00
test_map.py Docs and tests for litellm (#561) 2025-04-21 16:59:01 -04:00