From 71d7d83f98783417231c1c8590e427f0bc91f64b Mon Sep 17 00:00:00 2001 From: Carson Date: Tue, 17 Dec 2024 18:27:21 -0600 Subject: [PATCH] Cleanup --- CHANGELOG.md | 1 + chatlas/_chat.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dd9a9c..70f62b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * `ChatOllama` no longer fails when a `OPENAI_API_KEY` environment variable is not set. * `ChatOpenAI` now correctly includes the relevant `detail` on `ContentImageRemote()` input. +* `ChatGoogle` now correctly logs its `token_usage()`. (#23) ## [0.2.0] - 2024-12-11 diff --git a/chatlas/_chat.py b/chatlas/_chat.py index 3b9119a..bc6986f 100644 --- a/chatlas/_chat.py +++ b/chatlas/_chat.py @@ -179,6 +179,7 @@ def system_prompt(self, value: str | None): def tokens(self) -> list[tuple[int, int] | None]: """ Get the tokens for each turn in the chat. + Returns ------- list[tuple[int, int] | None]