Skip to content

Commit 503290f

Browse files
committed
cleanup
1 parent 4cbd78a commit 503290f

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

sentry_sdk/ai/monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if TYPE_CHECKING:
1313
from typing import Optional, Callable, Any
1414

15-
_ai_pipeline_name = ContextVar(SPANDATA.GEN_AI_PIPELINE_NAME, default=None)
15+
_ai_pipeline_name = ContextVar("ai_pipeline_name", default=None)
1616

1717

1818
def set_ai_pipeline_name(name):

sentry_sdk/consts.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,6 @@ class SPANDATA:
531531
The frequency penalty parameter used to reduce repetitiveness of generated tokens.
532532
Example: 0.1
533533
"""
534-
GEN_AI_REQUEST_LOGIT_BIAS = "gen_ai.logit_bias"
535-
"""
536-
The logit bias parameter used to control the model's response.
537-
Example: {"12345": -100}
538-
"""
539534

540535
GEN_AI_REQUEST_MAX_TOKENS = "gen_ai.request.max_tokens"
541536
"""

sentry_sdk/integrations/langchain.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
DATA_FIELDS = {
4848
"frequency_penalty": SPANDATA.GEN_AI_REQUEST_FREQUENCY_PENALTY,
4949
"function_call": SPANDATA.GEN_AI_RESPONSE_TOOL_CALLS,
50-
"logit_bias": SPANDATA.GEN_AI_REQUEST_LOGIT_BIAS,
5150
"max_tokens": SPANDATA.GEN_AI_REQUEST_MAX_TOKENS,
5251
"presence_penalty": SPANDATA.GEN_AI_REQUEST_PRESENCE_PENALTY,
5352
"response_format": SPANDATA.GEN_AI_RESPONSE_FORMAT,

0 commit comments

Comments
 (0)