From d54a1f835eb63a7cf41fcb627a72ffe0eb035d1b Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 12 Mar 2024 11:53:13 +0100 Subject: [PATCH] fix --- sentry_sdk/integrations/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry_sdk/integrations/openai.py b/sentry_sdk/integrations/openai.py index 74d729282d..0e71029b60 100644 --- a/sentry_sdk/integrations/openai.py +++ b/sentry_sdk/integrations/openai.py @@ -263,7 +263,7 @@ def new_embeddings_create(*args, **kwargs): _should_send_default_pii() and integration.include_prompts ): if isinstance(kwargs["input"], str): - set_data_normalized(span, "ai.input_messages", kwargs["input"]) + set_data_normalized(span, "ai.input_messages", [kwargs["input"]]) elif ( isinstance(kwargs["input"], list) and len(kwargs["input"]) > 0