Skip to content

Commit e7bf105

Browse files
committed
constant
1 parent 0081cf8 commit e7bf105

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/ai/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class GEN_AI_ALLOWED_MESSAGE_ROLES:
2121
GEN_AI_MESSAGE_ROLE_REVERSE_MAPPING = {
2222
GEN_AI_ALLOWED_MESSAGE_ROLES.SYSTEM: ["system"],
2323
GEN_AI_ALLOWED_MESSAGE_ROLES.USER: ["user"],
24-
"assistant": ["assistant", "ai"],
25-
"tool_call": ["tool_call"],
24+
GEN_AI_ALLOWED_MESSAGE_ROLES.ASSISTANT: ["assistant", "ai"],
25+
GEN_AI_ALLOWED_MESSAGE_ROLES.TOOL_CALL: ["tool_call"],
2626
}
2727

2828
# Convert reverse mapping to actual mapping for efficient lookups

0 commit comments

Comments
 (0)