mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* fix(vertex_ai): parse Vertex timestamps as UTC so created_at is not shifted by the host timezone convert_vertex_datetime_to_openai_datetime parsed the trailing-Z Vertex and GCS timestamps into a naive datetime, so .timestamp() read them as host local time and every created_at it produced was off by the host UTC offset (about 7h ahead on a PDT host). Attach UTC before converting, and accept the whole-second and nanosecond forms Google's RFC 3339 timestamps also use, which used to raise. Refs LIT-9383 * test(vertex_ai): type the UTC epoch test, guard tzset, build the rig config without mutation |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_handler.py | ||
| test_transformation.py | ||