We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0081cf8 commit e7bf105Copy full SHA for e7bf105
sentry_sdk/ai/utils.py
@@ -21,8 +21,8 @@ class GEN_AI_ALLOWED_MESSAGE_ROLES:
21
GEN_AI_MESSAGE_ROLE_REVERSE_MAPPING = {
22
GEN_AI_ALLOWED_MESSAGE_ROLES.SYSTEM: ["system"],
23
GEN_AI_ALLOWED_MESSAGE_ROLES.USER: ["user"],
24
- "assistant": ["assistant", "ai"],
25
- "tool_call": ["tool_call"],
+ GEN_AI_ALLOWED_MESSAGE_ROLES.ASSISTANT: ["assistant", "ai"],
+ GEN_AI_ALLOWED_MESSAGE_ROLES.TOOL_CALL: ["tool_call"],
26
}
27
28
# Convert reverse mapping to actual mapping for efficient lookups
0 commit comments