mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
Merge pull request #23242 from BerriAI/litellm_fix_redaction_and_charity_engine_provider
fix(tests): update cache hit redaction assertion to expect choices fo…
This commit is contained in:
commit
3e1f343d1a
1 changed files with 5 additions and 3 deletions
|
|
@ -1300,9 +1300,11 @@ def test_logging_async_cache_hit_sync_call(turn_off_message_logging):
|
|||
"redacted-by-litellm"
|
||||
== standard_logging_object["messages"][0]["content"]
|
||||
)
|
||||
assert {"text": "redacted-by-litellm"} == standard_logging_object[
|
||||
"response"
|
||||
]
|
||||
# response is a full ModelResponse dict (choices format) since d84e5e381acf
|
||||
assert (
|
||||
standard_logging_object["response"]["choices"][0]["message"]["content"]
|
||||
== "redacted-by-litellm"
|
||||
)
|
||||
|
||||
|
||||
def test_logging_standard_payload_failure_call():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue