mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-02 07:13:02 +00:00
The xAI create response only carries request_id, so usage was empty and completion_cost priced every created video at zero seconds. Derive usage.duration_seconds and usage.video_resolution from the request body sent to xAI, and forward the resolution param that was being dropped. Also cover the remaining image edit/generation, video, and ownership behaviors that had no tests. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_endpoints.py | ||
| test_ownership.py | ||
| test_utils.py | ||