Posted via @Jetbrains: and this @php version ?
https://github.com/hbenabdallah/sherpa/blob/58662e3713dec0fcb43d31b2c647c48795fb88bd/src/Platform/OllamaPlatform.php#L17-L28
src/Platform/OllamaPlatform.php#L17-L28
/** * Token counts from the server's own tokenizer: the only accurate figure a * PHP client can get, and what ContextBudget calibrates against. * * @var array{prompt: int, completion: int}|null */ private ?array $lastUsage { get => $this->lastOf('usage'); set(?array $value) { $this->keepLast('usage', $value); } }
GitHubsherpa/src/Platform/OllamaPlatform.php at 58662e3713dec0fcb43d31b2c647c48795fb88bd · hbenabdallah/sherpaA coding agent for your terminal. Reads your code, searches your docs, edits files and runs your tests, asking before anything that writes or executes. Works with Anthropic, any OpenAI-compatible A...
commit ad0a4ca