mirror of
https://github.com/katanemo/plano.git
synced 2026-07-20 16:41:04 +02:00
black formatting
This commit is contained in:
parent
d30018cf35
commit
d09fa97568
5 changed files with 52 additions and 13 deletions
|
|
@ -15,7 +15,6 @@ from opentelemetry.proto.collector.trace.v1 import (
|
|||
trace_service_pb2_grpc,
|
||||
)
|
||||
|
||||
|
||||
DEFAULT_GRPC_PORT = 4317
|
||||
DEFAULT_CAPACITY = 1000
|
||||
|
||||
|
|
@ -198,9 +197,9 @@ def span_to_llm_call(
|
|||
route_name=(
|
||||
str(attrs[_PLANO_ROUTE_NAME]) if _PLANO_ROUTE_NAME in attrs else None
|
||||
),
|
||||
is_streaming=bool(attrs[_LLM_IS_STREAMING])
|
||||
if _LLM_IS_STREAMING in attrs
|
||||
else None,
|
||||
is_streaming=(
|
||||
bool(attrs[_LLM_IS_STREAMING]) if _LLM_IS_STREAMING in attrs else None
|
||||
),
|
||||
status_code=_maybe_int(attrs.get(_HTTP_STATUS)),
|
||||
prompt_tokens=_maybe_int(attrs.get(_LLM_PROMPT_TOKENS)),
|
||||
completion_tokens=_maybe_int(attrs.get(_LLM_COMPLETION_TOKENS)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue