fix(llm-gateway): improve type safety and datetime consistency

- Add type annotations for mypy compliance
- Use UTC-aware datetimes consistently (datetime.now(UTC))
- Add type: ignore comments for LiteLLM incomplete stubs
- Fix import ordering and formatting
- Update pyproject.toml mypy configuration
This commit is contained in:
2026-01-03 20:56:05 +01:00
parent 678b3fffdd
commit ddf4f11eb7
15 changed files with 111 additions and 105 deletions

View File

@@ -172,7 +172,10 @@ class TestChatMessage:
role="user",
content=[
{"type": "text", "text": "What's in this image?"},
{"type": "image_url", "image_url": {"url": "http://example.com/img.jpg"}},
{
"type": "image_url",
"image_url": {"url": "http://example.com/img.jpg"},
},
],
)
assert isinstance(msg.content, list)