Skip to content

Commit c0b959d

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

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,7 @@ def record_call_llm(
301301
invocation_context.run_config
302302
and invocation_context.run_config.streaming_mode != StreamingMode.NONE
303303
)
304-
server_address = (
305-
getattr(invocation_context.agent, "model_api_base", None) or "unknown"
306-
)
304+
server_address = getattr(invocation_context.agent, "model_api_base", "unknown")
307305
attributes = {
308306
"gen_ai_system": "volcengine",
309307
"gen_ai_response_model": llm_request.model,

0 commit comments

Comments
 (0)