Skip to content

Commit a647912

Browse files
committed
feat: use unknown instead of None
1 parent d65b0a5 commit a647912

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

veadk/tracing/telemetry/attributes/extractors/llm_attributes_extractors.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,8 +824,7 @@ def llm_server_address(params: LLMAttributesParams) -> ExtractorResponse:
824824
ExtractorResponse: Response containing the server address or 'unknown'
825825
"""
826826
return ExtractorResponse(
827-
content=getattr(params.invocation_context.agent, "model_api_base", None)
828-
or "unknown"
827+
content=getattr(params.invocation_context.agent, "model_api_base", "unknown")
829828
)
830829

831830

veadk/tracing/telemetry/exporters/apmplus_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def record_call_llm(
302302
and invocation_context.run_config.streaming_mode != StreamingMode.NONE
303303
)
304304
server_address = (
305-
getattr(invocation_context.agent, "model_api_base", None) or "unknown"
305+
getattr(invocation_context.agent, "model_api_base", "unknown")
306306
)
307307
attributes = {
308308
"gen_ai_system": "volcengine",

0 commit comments

Comments
 (0)