Skip to content

Commit

Permalink
change folder name to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
alizenhom committed Oct 17, 2024
1 parent 8813754 commit 578653d
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.instrumentation.openai_v2.package import _instruments
from opentelemetry.instrumentation.utils import unwrap
from opentelemetry.semconv.schemas import Schemas
from opentelemetry.trace import get_tracer

Expand Down Expand Up @@ -74,4 +75,4 @@ def _instrument(self, **kwargs):
)

def _uninstrument(self, **kwargs):
unwrap(openai.resources.chat.completions.Completions, "create")
unwrap("openai.resources.chat.completions.Completions", "create")
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.


_instruments = ("openai >= 0.27.0",)
_instruments = ("openai >= 1.0.0",)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openai==1.37.1
openai==1.0.0
Deprecated==1.2.14
importlib-metadata==6.11.0
packaging==24.0
Expand Down

0 comments on commit 578653d

Please sign in to comment.