Skip to content

Commit 2a720b5

Browse files
committed
fix(anthropic) add top_k parameter to span attribute mapping
1 parent e92c1ed commit 2a720b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/integrations/anthropic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def _set_input_data(span, kwargs, integration):
129129
"max_tokens": SPANDATA.GEN_AI_REQUEST_MAX_TOKENS,
130130
"model": SPANDATA.GEN_AI_REQUEST_MODEL,
131131
"temperature": SPANDATA.GEN_AI_REQUEST_TEMPERATURE,
132+
"top_k": SPANDATA.GEN_AI_REQUEST_TOP_K,
132133
"top_p": SPANDATA.GEN_AI_REQUEST_TOP_P,
133134
}
134135
for key, attribute in kwargs_keys_to_attributes.items():

0 commit comments

Comments
 (0)