diff --git a/src/langtrace_python_sdk/instrumentation/openai/patch.py b/src/langtrace_python_sdk/instrumentation/openai/patch.py index bd4f6102..d2902aa5 100644 --- a/src/langtrace_python_sdk/instrumentation/openai/patch.py +++ b/src/langtrace_python_sdk/instrumentation/openai/patch.py @@ -1,5 +1,4 @@ import json -import openai from typing import Any, Dict, List, Optional, Callable, Awaitable, Union from langtrace.trace_attributes import ( LLMSpanAttributes, @@ -46,7 +45,7 @@ def filter_valid_attributes(attributes): return { key: value for key, value in attributes.items() - if value is not None and value != openai.NOT_GIVEN and value != "" + if value is not None and value != NOT_GIVEN and value != "" } diff --git a/src/langtrace_python_sdk/version.py b/src/langtrace_python_sdk/version.py index 528787cf..05527687 100644 --- a/src/langtrace_python_sdk/version.py +++ b/src/langtrace_python_sdk/version.py @@ -1 +1 @@ -__version__ = "3.0.0" +__version__ = "3.0.1"