Skip to content

Commit 23026f8

Browse files
committed
lint
1 parent d54de92 commit 23026f8

File tree

1 file changed

+5
-1
lines changed
  • ddtrace/llmobs/_integrations

1 file changed

+5
-1
lines changed

ddtrace/llmobs/_integrations/vllm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ def _llmobs_set_tags(
153153
return
154154

155155
stats = kwargs.get("stats")
156-
ctx = self._build_embedding_context(data, stats) if operation == "embedding" else self._build_completion_context(data, stats)
156+
ctx = (
157+
self._build_embedding_context(data, stats)
158+
if operation == "embedding"
159+
else self._build_completion_context(data, stats)
160+
)
157161
ctx[MODEL_NAME] = span.get_tag("vllm.request.model") or ""
158162
ctx[MODEL_PROVIDER] = span.get_tag("vllm.request.provider") or ""
159163
span._set_ctx_items(ctx)

0 commit comments

Comments
 (0)