mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(utils.py): fix cache hits for streaming
Fixes https://github.com/BerriAI/litellm/issues/4109
This commit is contained in:
parent
c0717133a9
commit
fe0b55f2ca
5 changed files with 42 additions and 16 deletions
|
@ -463,7 +463,7 @@ class OpenTelemetry(CustomLogger):
|
|||
#############################################
|
||||
|
||||
# OTEL Attributes for the RAW Request to https://docs.anthropic.com/en/api/messages
|
||||
if complete_input_dict:
|
||||
if complete_input_dict and isinstance(complete_input_dict, dict):
|
||||
for param, val in complete_input_dict.items():
|
||||
if not isinstance(val, str):
|
||||
val = str(val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue