forked from phoenix/litellm-mirror
test(test_custom_callback_input.py): fix custom callback input test
This commit is contained in:
parent
f73b6033fd
commit
beddb58852
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ class CompletionCustomHandler(
|
|||
is LiteLLMCommonStrings.redacted_by_litellm.value
|
||||
)
|
||||
else:
|
||||
assert isinstance(metadata_value["raw_request"], str)
|
||||
assert "raw_request" not in metadata_value or isinstance(
|
||||
metadata_value["raw_request"], str
|
||||
)
|
||||
except Exception:
|
||||
print(f"Assertion Error: {traceback.format_exc()}")
|
||||
self.errors.append(traceback.format_exc())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue