File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments