Skip to content

Commit 8bfb726

Browse files
.
1 parent bf46e1e commit 8bfb726

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

sentry_sdk/integrations/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def _set_embeddings_input_data(
429429

430430
return
431431

432-
# Special case following https://github.com/openai/openai-python/blob/3e0c05b84a2056870abf3bd6a5e7849020209cc3/src/openai/_utils/_transform.py#L194-L197
432+
# dict special case following https://github.com/openai/openai-python/blob/3e0c05b84a2056870abf3bd6a5e7849020209cc3/src/openai/_utils/_transform.py#L194-L197
433433
if not isinstance(messages, Iterable) or isinstance(messages, dict):
434434
set_data_normalized(span, SPANDATA.GEN_AI_OPERATION_NAME, "embeddings")
435435
_commmon_set_input_data(span, kwargs)

tests/integrations/openai/test_openai.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,6 @@ async def test_bad_chat_completion_async(sentry_init, capture_events):
928928
assert event["level"] == "error"
929929

930930

931-
@pytest.mark.asyncio
932931
@pytest.mark.parametrize(
933932
"send_default_pii, include_prompts",
934933
[

0 commit comments

Comments
 (0)