fix: replace litellm with tiktoken for token counting
Build and Push API / release (push) Successful in 3s
Build and Push API / build (push) Successful in 2m26s

- litellm had dependency conflicts with pydantic-ai
- tiktoken is lighter and already required by pydantic-ai
- Updated documentation (README.md, architecture.md)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-11 23:05:11 +01:00
co-authored by Claude Opus 4.5
parent 2523db4da7
commit 2f97041aa9
7 changed files with 127 additions and 24 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class TestTokenCounting:
def test_count_message_tokens_empty_list(self):
"""Test counting empty message list."""
tokens = count_message_tokens([])
# litellm may return small overhead even for empty list
# tiktoken returns small overhead for empty list (assistant priming)
assert tokens < 10