Skip to content

Commit d7b274e

Browse files
committed
fix openai dependecy
1 parent d5fc302 commit d7b274e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/langtrace_python_sdk/instrumentation/openai/patch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import openai
32
from typing import Any, Dict, List, Optional, Callable, Awaitable, Union
43
from langtrace.trace_attributes import (
54
LLMSpanAttributes,
@@ -46,7 +45,7 @@ def filter_valid_attributes(attributes):
4645
return {
4746
key: value
4847
for key, value in attributes.items()
49-
if value is not None and value != openai.NOT_GIVEN and value != ""
48+
if value is not None and value != NOT_GIVEN and value != ""
5049
}
5150

5251

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0.0"
1+
__version__ = "3.0.1"

0 commit comments

Comments
 (0)