mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-17 09:34:48 +00:00
style(proxy): ruff format usage telemetry
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
1887403079
commit
ecaadda80a
1 changed files with 2 additions and 6 deletions
|
|
@ -187,12 +187,8 @@ class UsageTelemetryRecorder(CustomLogger):
|
|||
}
|
||||
)
|
||||
self._llm_requests.add(1, attrs)
|
||||
self._tokens.add(
|
||||
payload.prompt_tokens, MappingProxyType({**attrs, "litellm.token.kind": "prompt"})
|
||||
)
|
||||
self._tokens.add(
|
||||
payload.completion_tokens, MappingProxyType({**attrs, "litellm.token.kind": "completion"})
|
||||
)
|
||||
self._tokens.add(payload.prompt_tokens, MappingProxyType({**attrs, "litellm.token.kind": "prompt"}))
|
||||
self._tokens.add(payload.completion_tokens, MappingProxyType({**attrs, "litellm.token.kind": "completion"}))
|
||||
self._spend.add(payload.response_cost, attrs)
|
||||
|
||||
def shutdown(self) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue