Skip to content

Commit f7efc7d

Browse files
authored
Merge pull request #1174 from niehusst/main
fix: openai Embeddings module hasattr typo
2 parents 5a3431f + 61c6fea commit f7efc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

newrelic/hooks/mlmodel_openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ def instrument_openai_resources_embeddings(module):
972972
wrap_function_wrapper(module, "Embeddings.create", wrap_embedding_sync)
973973

974974
if hasattr(module, "AsyncEmbeddings"):
975-
if hasattr(module.Embeddings, "create"):
975+
if hasattr(module.AsyncEmbeddings, "create"):
976976
wrap_function_wrapper(module, "AsyncEmbeddings.create", wrap_embedding_async)
977977

978978

0 commit comments

Comments
 (0)