Skip to content

Commit 768d035

Browse files
chore: Add debug logging to get_base_url
1 parent 92b7d89 commit 768d035

File tree

1 file changed

+4
-1
lines changed
  • src/langtrace_python_sdk/utils

1 file changed

+4
-1
lines changed

src/langtrace_python_sdk/utils/llm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,14 @@ def get_llm_url(instance):
162162

163163

164164
def get_base_url(instance):
165-
return (
165+
base_url = (
166166
str(instance._client._base_url)
167167
if hasattr(instance, "_client") and hasattr(instance._client, "_base_url")
168168
else ""
169169
)
170+
print(f"Debug - get_base_url called with instance type: {type(instance)}")
171+
print(f"Debug - get_base_url returning: {base_url}")
172+
return base_url
170173

171174

172175
def is_streaming(kwargs):

0 commit comments

Comments
 (0)