Revert "Fix logging tests"
This commit is contained in:
parent
9402a8b57e
commit
3f30f6a49c
@ -123,16 +123,6 @@ def perform_redaction(model_call_details: dict, result):
|
||||
elif isinstance(_result, litellm.EmbeddingResponse):
|
||||
if hasattr(_result, "data") and _result.data is not None:
|
||||
_result.data = []
|
||||
elif isinstance(_result, dict) and "choices" in _result:
|
||||
# ModelResponse.model_dump() returns dict - redact choices in place
|
||||
if isinstance(_result.get("choices"), list) and len(_result["choices"]) > 0:
|
||||
choice = _result["choices"][0]
|
||||
if isinstance(choice, dict) and "message" in choice:
|
||||
msg = choice["message"]
|
||||
if isinstance(msg, dict) and "content" in msg:
|
||||
msg["content"] = "redacted-by-litellm"
|
||||
if isinstance(msg, dict) and "audio" in msg:
|
||||
msg["audio"] = None
|
||||
else:
|
||||
return {"text": "redacted-by-litellm"}
|
||||
return _result
|
||||
|
||||
@ -458,24 +458,6 @@
|
||||
"interactions": true
|
||||
}
|
||||
},
|
||||
"charity_engine": {
|
||||
"display_name": "Charity Engine (`charity_engine`)",
|
||||
"url": "https://docs.litellm.ai/docs/providers/charity_engine",
|
||||
"endpoints": {
|
||||
"chat_completions": true,
|
||||
"messages": true,
|
||||
"responses": true,
|
||||
"embeddings": false,
|
||||
"image_generations": false,
|
||||
"audio_transcriptions": false,
|
||||
"audio_speech": false,
|
||||
"moderations": false,
|
||||
"batches": false,
|
||||
"rerank": false,
|
||||
"a2a": false,
|
||||
"interactions": false
|
||||
}
|
||||
},
|
||||
"chutes": {
|
||||
"display_name": "Chutes (`chutes`)",
|
||||
"endpoints": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user